Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 507 Bytes

README.markdown

File metadata and controls

16 lines (10 loc) · 507 Bytes

Reindr: Monadic html generation from javascript

========================

Generate html with a chain of functions, similar to how jquery does selectors.

The Reindr() (shortcutted as $R()) function will generate a monad that acts as a chain of nested html elements. Calling render() on a chain will output html.


    var r = $R().div.span.text("Hello World").render();
    
    should give you 
Hello Word

Experimental. Undocumented, only slightly tested.