Last active
December 12, 2015 05:28
-
-
Save piuccio/4721696 to your computer and use it in GitHub Desktop.
hashspace Basic template insert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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