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

Document extension & configuration of Jinja2 #2

Open
alanhogan opened this issue Apr 29, 2011 · 1 comment
Open

Document extension & configuration of Jinja2 #2

alanhogan opened this issue Apr 29, 2011 · 1 comment

Comments

@alanhogan
Copy link

Questions that should be answered by Hyde docs:

  • In this configuration of Jinja2, is {{ var }} going to escape by default? (This would not be the Jinja2 package default, but makes sense)
  • What is the custom {% mark %} and {% endmark %} syntax? Is it specific to markdown?
  • Any other configuration and extensions
@navilan
Copy link
Member

navilan commented Apr 29, 2011

Agreed on all the points. Will make sure they are included.

Marking and reference will go here: http://hyde.github.com/templates/markrefer.html

To answer your question here, mark tag is there to block sections that need to be used elsewhere at a later point.

For example,

Here is a mark tag:
https://github.com/hyde/hyde/blob/master/hyde/layouts/basic/content/blog/happy-post.html#L17-23
and here is how it is used:
https://github.com/hyde/hyde/blob/master/hyde/layouts/basic/layout/macros.j2#L2-6

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