Skip to content

Browser Support "appears" to have issues and also is broken in example. #3

@NathanaelA

Description

@NathanaelA
  1. No instructions on how to compile it to be a browser version [coffee --join dot.js --compile dot_core.coffee settings/original.coffee do_t.coffee] appears to work. (As a side note the dot.js file that is compiled this way; is not good for node then, because it has the full settings/dotcore but it tries to "require" them in the node section module setup)
  2. doT.template is not defined; based on the older version of the codebase; it looks like .compile is supposed to be the same thing. So adding a
    "template: DotCore::compile" to the Dot_core.coffee file after the compile definition appears to fix it (mostly).
  3. Examples\Browsersample.html has two issues and appears to be broken under your coffeescript version codebase. 1st, it references ../dot.min.js; this file doesn't exist. So switching it to ../dot.js fixes it so it can run. But the {{=it.title}} doesn't print; it prints "undefined" instead. Also it is missing the full headertmpl, and the mycustominjectionintoheader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions