Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16640 closed Bug (invalid)

load static doesn't import from a base template

Reported by: vptruman@… Owned by: nobody
Component: Template system Version: master
Severity: Normal 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

When importing a template that uses "load static", it doesn't import into the child template, you have to "load static" again. I feel that if the static folder is imported into the base template, you shouldn't have to load it again.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

This is the template language working as designed. Every template is a clean slate.

comment:3 Changed 3 years ago by anonymous

(Please redirect me to documentation if it's there but i didn't see any
that addressed this) it might be working as designed but then im
questioning the principle; if the model is DRY, then why must i repeat
myself for every child template if the variable im asking it for is not
inside a dynamic block. I don't see a disadvantage to having the static
var being loaded from the base template; get static prefix isn't
something that would change from template to template. I'm interested
if there is a valid reason that i am just not thinking of. Thanks for
the quick response guys, keep up the good work, i was just troubled for
a few hours when i couldn't figure out why my CSS wasn't loading the
way i thought. Cheers

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.