Code

Opened 7 years ago

Closed 7 years ago

#3831 closed (wontfix)

new behaviour for include - tag

Reported by: ville.anttonen@… Owned by: adrian
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: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.