Opened 13 years ago

Closed 13 years ago

Last modified 13 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: dev
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.

Change History (3)

comment:1 by anonymous, 13 years ago

comment:2 by Russell Keith-Magee, 13 years ago

Resolution: invalid
Status: newclosed

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

comment:3 by anonymous, 13 years ago

(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

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