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

Option for specifying a template to render with #1

Open
sebpiq opened this issue Nov 2, 2011 · 0 comments
Open

Option for specifying a template to render with #1

sebpiq opened this issue Nov 2, 2011 · 0 comments

Comments

@sebpiq
Copy link

sebpiq commented Nov 2, 2011

A possible syntax would be :

{% detail_block pepulator template="pepulator_factory/knuckle_detail.html" %}

I haven't really checked what is the django-way of passing parameters to a template tag though ... I think it is actually not very common. Why not :

{% detail_block pepulator with "pepulator_factory/knuckle_detail.html" %}

What would be really cool is that the template name would be optional, and the tag would look-up automatically for "<app_label>/<model_name>_detail_block.html", like django generic views do for example ...

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

1 participant