Opened 18 years ago
Closed 18 years ago
#3831 closed (wontfix)
new behaviour for include - tag
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be nice if you could dynamically load a view with include tag.
Tag should recognise if you're including static template or view and render the response dynamically
if view is presented. This could be implemented with extra parameter for include tag such as "dynamic" or similar.
With this feature you could easily "plug-in" separate contexts (such ass poll weather broadcast application) to
your intra web - application without caring the logic behind it.
Note:
See TracTickets
for help on using tickets.
You can already get this sort of behaviour by either passing in the results of the other function as a variable in the context, including the other function as a method on an object passed into the template or using the ssi or include tags (depending on what you want to include). We shouldn't be implementing yet another way to include external data, since it's not going to make anything much easier than it already is.
If you really want this functionality in just the way you describe, it would be easy enough to write a custom template tag to do so.