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

Add friendly variables in template #21

Open
sylvainvivien opened this issue Oct 21, 2009 · 1 comment
Open

Add friendly variables in template #21

sylvainvivien opened this issue Oct 21, 2009 · 1 comment

Comments

@sylvainvivien
Copy link

For people that "only" want to create a theme, I think these django tags are not very friendly and they have to check the code to understand them.

{% ifequal generator_class "IndexContentGenerator" %}
{% ifequal handler_class "AdminHandler" %}
{% ifequal path "/admin/newpost" %}

Maybe this could be replace with nice and easy variable :

{% if index %}
{% if admin %}
{% if new_post %}
etc,...

then it could be nice to create all :

{% if atom %} #atom generator
{% if edit_post %} #edit a post
{% if tag %} #tag generator
etc,....

@Arachnid
Copy link
Owner

I agree with the sentiment, but I'm not so sure this is a practical way to handle it. It needs thought.

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