Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5858] MobileWeb: Update index.html and build process to use mako template engine for variable insertion

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-09T17:41:46.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-45, Release 1.8.0.1
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2011-10-25T09:49:17.000+0000
Updated2017-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.

Comments

  1. Bryan Hughes 2011-10-26

    Pull request: https://github.com/cb1kenobi/titanium_mobile/pull/1
  2. Chris Barber 2011-10-28

    Looks good.
  3. Lee Morris 2017-03-04

    Closing ticket due to MobileWeb no longer being supported.

JSON Source