Questions tagged [hiccup]

Hiccup is a library for representing HTML in Clojure. It uses vectors to represent tags, and maps to represent a tag's attributes.

101 questions
0
votes
2 answers

Sound playback delay (hiccup) when OpenAL is implemented on iphone

I implemented OpenAL code to my iphone game. When I starts the game, it runs for 1 sec and stalls for 2 sec then resumes (hiccup effect). I believe its delayed due to the sound files loading. What is the solution? Can anyone recommend any book, site…
NorthKyut
  • 11
  • 4
0
votes
2 answers

Configuring Clojurescript project for garden & hiccup compiled output

How to configure project.clj file to configure it to output html & css files from hiccup & garden on compiling, so that i can deploy to server without any dynamic css/html loading on client side ?
Renjith Thankachan
  • 4,178
  • 1
  • 30
  • 47
0
votes
3 answers

Clojure list comprehension and unique values for reagent

Let's assume that we have this grid with values that can be 0 or 1: (def grid [[1 0 1] [1 0 0] [1 0 1]]) Now I want to transform grid into an html Hiccup like format using list comprehension: (defn cell-component [is-it-1…
Michel Uncini
  • 321
  • 1
  • 14
0
votes
1 answer

CSS Increase Checkbox Size without Increasing Text Size

I have the following HTML code (it's Hiccup HTML, a library created by weavejester, which allows HTML to be written in Clojure, enclosed in vectors) : [:div#permissionsRequired [:input {:type "checkbox"} "No permissions required"]] And here…
AStanton
  • 43
  • 2
  • 9
0
votes
1 answer

Clojure "already refers to" exception for Hiccup's with-base-url

I am going through Liberator's Getting Started guide. At the very beginning, when trying to evaluate the above namespace declaration (ns restserver.core (:require [liberator.core :refer [resource defresource]] …
siphiuel
  • 3,480
  • 4
  • 31
  • 34
0
votes
1 answer

Setting up ClojureScript

I have been trying the following in the command line to get ClojureScript running $ lein cljsbuild auto. But keep getting a warning unable to find crossover: web-viz.x-over. The crossover line is in my project below (defproject web-viz …
sunspots
  • 1,047
  • 13
  • 29
0
votes
1 answer

Parsing hiccup text field string data for use in Clojure functions

I am making a simple web-app to help my teacher friends calculate their grades. I have the current bit of code that I am working with below: (defn home [& [weights grades error]] (layout/common [:h1 "Welcome to Clojure-grade"] …
kurofune
  • 1,055
  • 12
  • 26
0
votes
1 answer

Friend authentication empty param

I am trying to implement friend authentication on my web app but when i try to login i get this */login?&login_failed=Y&username=*...my param is empty and i cant login,what am i doing wrong? these are my routes... (defroutes routes (GET "/" []…
Shile
  • 1,063
  • 3
  • 13
  • 30
0
votes
1 answer

Repetitive structure in Clojure

It is said in the book "Web Development with Clojure" that the code (defn registration-page [] (layout/common (form-to [:post "/register"] (label "id" "screen name") (text-field "id") [:br] …
Pauli
  • 1,159
  • 1
  • 11
  • 22
0
votes
1 answer

How to write Angularjs directive attributes which have no RHS in hiccup?

I am writing an AngularJS app with markup in hiccup. The mark-up is something like this
The corresponding Hiccup I have written is this: [:div.modal.fade { :modal-show …
Amogh Talpallikar
  • 12,084
  • 13
  • 79
  • 135
0
votes
1 answer

Prevent multiple span in a line from overlapping (Clojure hiccup code but purely css related)

How can I group two divs inside a span (one below other and the div contains text and has a fixed width) and display multiple span like this in fixed width td tag. I am able to do so, but my span are overlapping. If the space in a line is full then…
Avi
  • 368
  • 2
  • 13
1 2 3 4 5 6
7