-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Updated documentation on SimpleTemplate and embedded blocks. #1028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more than needed. All you need to say is that the same white space rules apply as inline. Indentation is ignored and blocks must be end
ed. It also comes off a bit editorialized
I get this, but
not sure what you mean by this. |
The not being valid python it is valid except for the Also, on another note, simple template doesn’t evaluate the code. It just parses for the key words and then python evaluates that. It’s an important distinction because the engine isn’t reimplementing logic. |
Yes, I wrote
which would seem to cover it. I don't mind changing close to very close. I also didn't say that |
The examples are a little misleading I think. The indentation counter is not reset at the I prefer to reason about this in two steps: The key message is that |
I get this now. The thing that threw me was that every example in the current documentation has Would it be better to have an example with more levels of indentation, and mixing
I think it would be good to have an example of a |
As discussed in #1027.