Modify

Opened 4 years ago

Closed 7 months ago

Last modified 7 months ago

#7455 closed enhancement (fixed)

Add entries for scripts in theme info

Reported by: olemis Owned by: olemis
Priority: high Component: ThemeEnginePlugin
Severity: normal Keywords: script javascript theme
Cc: Trac Release: 0.11

Description

Currently it's quite easy to override CSS rules in a theme , but (AFAIK) there's no easy way to include scripts. IOW , it's necessary to re-implement IRequestFilter interface and call add_script in order to get theme-specific scripts added.

It would be nice to be able to list script files (i.e. path + script type) so that ThemeEnginePlugin will add these files auto-magically . I mean, it's such a common and simple use case ...

Attachments (0)

Change History (6)

comment:1 Changed 7 months ago by olemis

  • Owner changed from coderanger to olemis

comment:2 Changed 7 months ago by olemis

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

In 13523:

ThemeEnginePlugin [ fixes #7455 ]: Declare custom theme scripts via 'scripts' member in theme info

  • Docs updated
  • Supported in themeengine.api.ThemeBase

comment:3 follow-up: Changed 7 months ago by rjollos

The version of the plugin remains 2.2.2 throughout recent changes, [13506:13523/themeengineplugin]. It would be useful to add a setup.cfg to the trunk and mark the current configuration as dev.

Last edited 7 months ago by rjollos (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 7 months ago by olemis

Replying to rjollos:

The version of the plugin remains 2.2.2 throughout recent changes,

That's the target version I'm developing

It would be useful to add a setup.cfg to the trunk and mark the current configuration as dev.

definitely sure ... ;)

comment:5 Changed 7 months ago by olemis

In 13531:

TracDeveloper [ refs #7455 ]: Add setup.cfg file status=dev

comment:6 Changed 7 months ago by olemis

In 13532:

ThemeEnginePlugin [ refs #7455 ]: Add setup.cfg file status=dev

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from olemis. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.