Patrick Steele-Idem c386da875e Fixes #349 - Inline Marko template compilation support
Also changed how JavaScript code is generated
2016-08-19 10:50:28 -06:00

9 lines
217 B
JavaScript

function macro_greeting(name, age, out, renderBody) {
out.w("Hello " +
marko_escapeXml(name));
}
macro_greeting("Frank", 10, out, function renderBody(out) {
out.w("This is the body passed to the macro");
});