Giter Site home page Giter Site logo

Jade Templating about angular-desktop-app HOT 2 CLOSED

jgrenon avatar jgrenon commented on May 25, 2024
Jade Templating

from angular-desktop-app.

Comments (2)

jgrenon avatar jgrenon commented on May 25, 2024

I’ll review your code and integrate the solution into the master branch.
Thanks for your help!
Joel

On Saturday, July 19, 2014 at 20:44, JProffitt71 wrote:

When using extends/include in Jade, the parser silently fails because it can't handle relative paths without passing the filename in options, resulting in a white screen.
I fixed this by modifying views.js and adding a path to each template, passed to the compile method:
templates[f.substring(0, f.length - 5)] = { tmplfile:fs.readFileSync(path.resolve('./views', f)), tmplpath: path.resolve('./views', f), compiled:false }; ... tmpl.tmpl = jade.compile(tmpl.tmplfile, {'filename': tmpl.tmplpath});


Reply to this email directly or view it on GitHub (#14).

from angular-desktop-app.

jgrenon avatar jgrenon commented on May 25, 2024

You improvement will be included in the next release. thanks

from angular-desktop-app.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.