[TIMOB-5858] MobileWeb: Update index.html and build process to use mako template engine for variable insertion
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-09T17:41:46.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-45, Release 1.8.0.1 |
Components | MobileWeb |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2011-10-25T09:49:17.000+0000 |
Updated | 2017-03-04T00:11:27.000+0000 |
Description
There are a number of places that constants are injected into the mobile web's index.html template and various JavaScript files where these constants are not properly escaped. If a project name has a < or > in it, it will cause invalid HTML markup. Or if the project description has an unescaped quote, it will break the JavaScript.
Integrate the mako template engine into the build process and escape the variable insertions using the correct mako filters.
Refer to the mako filtering documentation for more information: http://www.makotemplates.org/docs/documentation.html#filtering.
Pull request: https://github.com/cb1kenobi/titanium_mobile/pull/1
Looks good.
Closing ticket due to MobileWeb no longer being supported.