Skip to content

Instantly share code, notes, and snippets.

@piuccio
Last active December 12, 2015 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piuccio/4721696 to your computer and use it in GitHub Desktop.
Save piuccio/4721696 to your computer and use it in GitHub Desktop.
hashspace Basic template insert
// The model is accessible with the name `vscope`
// To refresh a template, call `refresh()`
json.set(vscope, "message", 'Have a nice refresh.');
log();
hsp.refresh();
# template main(message)
<h3>Main Template</h3>
# insert saySomething(message)
# /template
# template saySomething(what)
<p>Sub template says: {what}</p>
# /template
display(main, ["Nice to meet you."]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment