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

Template Tags not working in Tempo 2.0 #73

Open
philllies opened this issue Mar 20, 2013 · 6 comments
Open

Template Tags not working in Tempo 2.0 #73

philllies opened this issue Mar 20, 2013 · 6 comments

Comments

@philllies
Copy link

Hi there,

I tried to use template tags like these

{% if javascript-expression %} ... {% else %} ... {% endif %}

but they don't seem to be working in Tempo 2.0, even though their use is stated in the documentation.

@difrnt
Copy link

difrnt commented Mar 20, 2013

Can you create a jsfiddle with an example? I use Tempo 2.0 and these tags and have no problems.

@philllies
Copy link
Author

I tried a very basic template and it worked with Tempo 2.0. However, it does not with the following template:
http://jsfiddle.net/9JYnV/1/

@mrolafsson
Copy link
Contributor

Yes, you're right - and I think this is something to do with tables (which are always a problem): http://jsfiddle.net/ycxJs/4/ I'll have a look at this today! Thanks for reporting!

@mrolafsson
Copy link
Contributor

I think there might be a problem with conditional template tag in nested templates - looks to me like they're processed as a part of the main template iteration (before it gets to nested)? Can you anyone confirm that?

@mrolafsson
Copy link
Contributor

This is obviously fixed in Tempo 3.0 since templates are preprocessed and cached (not processed in one go) and fixing this in 2.0 could be very tricky. Are we happy to leave this until 3.0?

@mrolafsson
Copy link
Contributor

Sorry for the radio silence. Are you still using Tempo? Would you be interested in it's continued development?

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

3 participants