fabiocaseri / dashing-js

Port of Dashing to node.js
MIT License
319 stars 150 forks source link

Generating new dashboard throws error #12

Closed arabold closed 10 years ago

arabold commented 10 years ago

Generating a new dashboard throws an error during .ejs template processing:

Generating dashboard "test"
{ [ReferenceError: C:\Users\xxx\AppData\Roaming\npm\node_modules\dashing-js\
templates\dashboard\%name%.jade.tt:8
    6|   </ul>
    7| </div>
 >> 8| <%- contentFor('title') %>
    9| My dashboard title

contentFor is not defined]
  path: 'C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\dashing-js\\te
mplates\\dashboard\\%name%.jade.tt' }
      create  dashboards\test.jade

Steps to reproduce:

dashing-js new test
npm install
cd test
dashing-js generate dashboard test

This error occurs in both Windows and Ubuntu.

fabiocaseri commented 10 years ago

Try 0.1.3. It's better to generate a new dashboard first.