Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation suggestions / questions #45

Open
chrissound opened this issue Jan 30, 2017 · 1 comment
Open

Documentation suggestions / questions #45

chrissound opened this issue Jan 30, 2017 · 1 comment

Comments

@chrissound
Copy link

chrissound commented Jan 30, 2017

http://snapframework.com/docs/tutorials/heist

Whenever the bound tag is used, the template engine will substitute the ‘bind’ tag’s child nodes in its place.

When does this occur? renderTemplate?

The apply tag loads one of your application templates and inserts it into the current template’s node tree. If the target template does not have any special tags, then the contents of the apply tag are ignored.

When does this occur? What is the target template?

@mightybyte
Copy link
Member

When does this occur? renderTemplate?

It depends on what kind of splice it is and whether you're using interpreted or compiled mode.

In interpreted mode it happens at renderTemplate. In compiled mode, if it's a load-time splice, that happens in initHeist. For compiled splices it happens in renderTemplate.

When does this occur? What is the target template?

The apply tag is a splice like any other splice.

http://hackage.haskell.org/package/heist-1.0.1.0/docs/Heist-Splices-Apply.html

In interpreted mode, it's just a normal splice. In compiled mode, it is a load-time splice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants