I like using lua as a DSL, now I like it even more! I've using lua as a html templating language that looks like this:
DIV {
id="id";
class="class;
H1 "heading";
P [[
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor ]] / EM incididunt / [[ ut labore et
dolore magna aliqua.
]];
PRE ^ CODE [[ this is <code> tag inside <pre> ]];
}
TIL I can also use semicolons on lua tables, not just commas:
I like using lua as a DSL, now I like it even more! I've using lua as a html templating language that looks like this: