LM Documentation

LIB/default.html Documentation


class : (cls: String) -> HTMLAttribute

A class attribute can be added to most html elements.


(div(
   (class( 'p-data_s ))
   (h2( 'Hello_s ))
))


action : (cls: String) -> HTMLAttribute

An action attribute can be added to most html elements.


(form(
   (action( 'http://site_s ))
))


value : (cls: String) -> HTMLAttribute

A value attribute can be added to most html elements.


(input(
   (value( 'http://site_s ))
))


checked : () -> HTMLAttribute

A checked attribute can be added to most html elements.


(form(
   (checked( () ))
))


hidden : () -> HTMLAttribute

A hidden attribute can be added to most html elements.


(form(
   (hidden( () ))
))


method : (cls: String) -> HTMLAttribute

A method attribute can be added to most html elements.


(form(
   (method( 'get_s ))
))


name : (cls: String) -> HTMLAttribute

A name attribute can be added to most html elements.


(div(
   (name( 'data_s ))
   (h2( 'Hello_s ))
))


autocomplete : (cls: String) -> HTMLAttribute

An autocomplete attribute can be added to most html elements.


(input(
   (type_( 'text_s ))
   (autocomplete( 'default value_s ))
))


required : (cls: String) -> HTMLAttribute

A required attribute can be added to most html elements.


(input(
   (type_( 'text_s ))
   (required( 'yes_s ))
))


placeholder : (cls: String) -> HTMLAttribute

A placeholder attribute can be added to most html elements.


(input(
   (type_( 'text_s ))
   (placeholder( 'temporary value_s ))
))


type_ : (cls: String) -> HTMLAttribute

A type attribute can be added to most html elements.


(input(
   (type_( 'text_s ))
))


src : (s: String) -> HTMLAttribute

A src attribute can be added to most html elements.


(input(
   (src( 'http://site_s ))
))


id : (i: String) -> HTMLAttribute

An id attribute can be added to most html elements.


(input(
   (id( 'ident_s ))
))


rel : (i: String) -> HTMLAttribute

A rel attribute can be added to most html elements.


(input(
   (rel( 'ident_s ))
))


href : (a: String) -> HTMLAttribute

An href attribute can be added to most html elements.


(input(
   (rel( 'http://site_s ))
))


text : (t: String) -> HTMLElement

text is a typesafe plaintext element.


(text( 'hello_s ))


html : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

html is the document root .


(html(
   (text( 'hello_s ))
))


main : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

main is a semantic html element.


(main(
   (text( 'hello_s ))
))


head : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

head is a semantic html element.


(head(
   (title( 'The page title_s ))
))


title : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

title is a semantic html element.


(title(
   (text( 'hello_s ))
))


body : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

body is where visual html elements go.


(body(
   (text( 'hello_s ))
))


h1 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h1 is a semantic html element.


(h1(
   (text( 'hello_s ))
))


h2 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h2 is a semantic html element.


(h2(
   (text( 'hello_s ))
))


h3 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h3 is a semantic html element.


(h3(
   (text( 'hello_s ))
))


h4 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h4 is a semantic html element.


(h4(
   (text( 'hello_s ))
))


h5 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h5 is a semantic html element.


(h5(
   (text( 'hello_s ))
))


h6 : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

h6 is a semantic html element.


(h6(
   (text( 'hello_s ))
))


div : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

div is a semantic html element.


(div(
   (text( 'hello_s ))
))


header : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

header is a semantic html element.


(header(
   (text( 'hello_s ))
))


nav : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

nav is a semantic html element.


(nav(
   (text( 'hello_s ))
))


ul : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

ul is a semantic html element.


(ul(
   (text( 'hello_s ))
))


ol : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

ol is a semantic html element.


(ol(
   (text( 'hello_s ))
))


li : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

li is a semantic html element.


(li(
   (text( 'hello_s ))
))


a : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

a is a semantic html element.


(a(
   (text( 'hello_s ))
))


span : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

span is a semantic html element.


(span(
   (text( 'hello_s ))
))


i : (attrs: HTMLAttribute...)(f1: HTMLElement) -> HTMLElement

i is a semantic html element.


(i(
   (text( 'hello_s ))
))


p : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

p is a semantic html element.


(p(
   (text( 'hello_s ))
))


img : (attrs: HTMLAttribute...) -> HTMLElement

img is a semantic html element.


(img(
   (text( 'hello_s ))
))


link : (attrs: HTMLAttribute...) -> HTMLElement

link is a semantic html element.


(link(
   (text( 'hello_s ))
))


section : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

section is a semantic html element.


(section(
   (text( 'hello_s ))
))


form : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

form is a semantic html element.


(form(
   (text( 'hello_s ))
))


input : (attrs: HTMLAttribute...) -> HTMLElement

input is a semantic html element.


(input(
   (text( 'hello_s ))
))


button : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

button is a semantic html element.


(button(
   (text( 'hello_s ))
))


pre : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

pre is a semantic html element.


(pre(
   (text( 'hello_s ))
))


code : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

code is a semantic html element.


(code(
   (text( 'hello_s ))
))


hr : (attrs: HTMLAttribute...)(es: HTMLElement...) -> HTMLElement

hr is a semantic html element.


(hr(
   (class( 't_s ))
))