|
|
| Author |
Message |
< Erlang ~ Yaws and EHTML, newbie warning |
| seancharles |
Posted: Fri Aug 10, 2007 3:08 pm |
|
|
|
User
Joined: 18 Jul 2007
Posts: 57
|
ehtml is very very flexible and the speed-hungry expander is very very clever
but
try this...
Code: {ehtml, {div, [], "Hello World"}}
...doesn't work... why? ...eventually I sussed that div per se is a reserved word!
Instead use:
Code: {ehtml, {'div', [], "Hello World"}}
which makes it an atom and thus not interpreted at expansion time. DIV will not work as it thinks it is an undefined variable.
This may be obvious but not to me it wasn't! I hope that saves somebody else needless frustration and exasperation!
Sean Charles |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|