Opened 12 years ago

Closed 12 years ago

#3831 closed (wontfix)

new behaviour for include - tag

Reported by: ville.anttonen@… Owned by: Adrian Holovaty
Component: Template system Version: master
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


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.

Change History (1)

comment:1 Changed 12 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top