HTML Helpers - just a tough...

18 views
Skip to first unread message

António Ramos

unread,
Jul 24, 2019, 7:47:41 AM7/24/19
to web...@googlegroups.com
I realy like the html helpers but like a lot more the eml language sintax regarding html because for bigger code than this example shows, having the named arguments like _class at the end of the helper is very confusing and dificult to see what named arguments correspond to a particular helper. Its a python thing having named arguments at the end but.... 

Elm
div [ class "myclass" ]
    [ b []
        [ i []
            [ text "hello <world>" ]
        ]
    ]

web2py Helpers
DIV(B(I("hello ", "<world>")), _class="myclass")


Output expected
<div class="myclass"><b><i>hello &lt;world&gt;</i></b></div>
Reply all
Reply to author
Forward
0 new messages