4 ms·
This might be okay too? (div (class "alert") So long, and (b thanks) for all the (em fish)) or (div {class "alert"} So long, and (b thanks) for all the (
by fouc 3y ago
This might be okay too?
(div (class "alert") So long, and (b thanks) for all the (em fish))
or
(div {class "alert"} So long, and (b thanks) for all the (em fish))
- chii 3y agoPersonally, i'd go with (div (class [alert someothercss]) [so long and (b [thanks]) for all the (em [fish and chips])])
- captainbland 3y agoYeah I think you want some way to clearly differentiate between tags and attributes as there are some cases where there are attribute and tags with the same name. E.g. does (body (style "styleinfo")) mean <body style="styleinfo"></body> Or <body><style>styleinfo</style></body>?
- fouc 3y agosecond example using { } could imply the attribute and ( ) could imply the tag
- lelanthran 3y ago> second example using { } could imply the attribute and ( ) could imply the tag Right now the only reserved tokens are '(', ')' and ':'. Everything else is emitted as HTML content. Reserving '{' and '}' for use by the program means that users would have to escape '{' and '}' wherever it occurs in their content.