Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#13500 closed (wontfix)

template loaders to be passed the request

Reported by: kennydude Owned by: nobody
Component: Template system Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I think template loaders would be more useful if they were passed the Request object.

This way they could dynamically have more options to pick and we would be able to see more interesting things for example:

  • View mode's (mobile etc) picked for all components
  • User styles
  • Compressing the template if wanted (saving space for mobile internet allowance)

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 4 years ago by Alex

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

Closing as wontfix: the template and request systems are totally independent, and should stay that way. If you want to write a custom template loader there are ways of making the request accessible.

comment:2 in reply to: ↑ 1 Changed 4 years ago by kennydude

Replying to Alex:

Closing as wontfix: the template and request systems are totally independent, and should stay that way. If you want to write a custom template loader there are ways of making the request accessible.

I've look on the internet and it seems there is no way to get the request through. Can you tell me how I would do that?

comment:3 Changed 4 years ago by timc3

I agree, there is no clear way of making the request available.

comment:4 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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.