Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Add friendly variables in template #21

@sylvainvivien

Description

@sylvainvivien

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,....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions