[
https://issues.apache.org/jira/browse/WOOKIE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187727#comment-13187727
]
Ross Gardler commented on WOOKIE-303:
-------------------------------------
Scripts are not added to index.html they are added to content_scripts.html. It
is done this way because this allows the scripts tag to be added to the common
folder and thus only needs to be defined once (unless you want to override it
in a widget). Stylesheets are not yet managed in this way, but it is relatively
simple to make this change.
I don't think an auto-include mechanism would work since the order of scripts
is important (e.g you must load jquery before jqm)
> Automatically link web assets such as .js and .css files to index.html when
> using templates
> -------------------------------------------------------------------------------------------
>
> Key: WOOKIE-303
> URL: https://issues.apache.org/jira/browse/WOOKIE-303
> Project: Wookie
> Issue Type: Improvement
> Components: Template
> Affects Versions: 0.9.2
> Reporter: Scott Wilson
> Fix For: 0.10.0
>
>
> When extending or using templates, the widget developer can add scripts to
> the scripts and lib directories, or css files to the styles directory.
> However these are not automatically linked from the widget's index.html when
> the widget is built, and so developers need to remember to add them to the
> index.html page directly. It would be better if the build scripts
> automatically added any .js and .css files found in these directories to
> index.html.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira