Opened 6 years ago

Closed 6 years ago

Last modified 5 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)

Change History (4)

comment:1 Changed 6 years ago by Alex Gaynor

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

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 6 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 6 years ago by Tim Child

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

comment:4 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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