close Warning: Can't synchronize with repository "(default)" (/project/cl-weblocks/svn does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 17 years ago

Closed 17 years ago

#12 closed enhancement (fixed)

Make stylesheet and javascript requirements dynamic

Reported by: Slava Akhmechet Owned by: Slava Akhmechet
Priority: high Milestone: 0.1
Component: weblocks Version: pre-0.1
Keywords: harcoded stylesheet javascript requirements Cc:

Description

Currently stylesheet and javascript requirements are hardcoded in the 'with-page' function. The only way for users to override this is to redefine the function. We need to make these requirements configurable, and widgets should be able to register files that they require. Additionally, some form of dependecy graph or priority system needs to be implemented (order matters since some stylesheets override others).

Change History (1)

comment:1 Changed 17 years ago by Slava Akhmechet

Resolution: fixed
Status: newclosed

Fixed. When each widget is rendered, weblocks determines the resources it depends on via 'widget-public-dependencies' (by default widget's name is used to find a common sense 'magick' location of the resources). Additionally, application-wide resources can be passed via *application-public-dependencies*.

Note: See TracTickets for help on using tickets.