Welcome to the CHICKEN Scheme pasting service

Opinions about bootstrap-rules API added by arthurmaciel on Thu Jun 11 14:34:34 2015

;; Which way is preferable in your opinion?

;; Bootstrap-rules will be an egg to provide SXML shortcuts for bootstrap classes on common HTML/SXML elements.

;; 1 - The label or glyphicon 'kind' being the second element.
;; Note that label has a "body", but glyphicons don't.

(label warning "body") 
(label success "body") 
(label info "body")
(label (@ (class "my-class")) info "body") 

(glyphicon asterisk)
(glyphicon euro)
(glyphicon volume-up)
(glyphicon (@ (id "my-id")) volume-up)

;; 2 - One SXML rule for each kind of label or glyphicon. 

(label-warning "body")
(label-success "body") 
(label-info "body") 
(label-info (@ (class "my-class")) "body")

(glyphicon-asterisk)
(glyphicon-euro)
(glyphicon-volume-up)
(glyphicon-volume-up (@ (id "my-id")))

;; 3 - Direct SXML (also the result of transforming 1 and 2)

(span (@ (class "label label-warning")) "body")
(span (@ (class "label label-success")) "body")
(span (@ (class "label label-info")) "body")
(span (@ (class "label label-info my-class")) "body")

(span (@ (class "glyphicon glyphicon-asterisk)))
(span (@ (class "glyphicon glyphicon-euro)))
(span (@ (class "glyphicon glyphicon-volume-up)))
(span (@ (class "glyphicon glyphicon-volume-up) (id "my-id)))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Given a list, which one-argument R5RS procedure returns the element at index 0?
Visually impaired? Let me spell it for you (wav file) download WAV