Code Monkey home page Code Monkey logo

Comments (5)

1000i100 avatar 1000i100 commented on September 28, 2024

I have the same issue :
Here is my Brocfile.js :

var jade = require('broccoli-jade');
var stylus = require('broccoli-stylus');

var tree = 'src/';
tree = stylus(tree, {});
tree = jade(tree, {});

module.exports = tree;

and my src/index.jade :

doctype html
html(lang="fr")
    head
        title my title
        style
            include style.css
    body
        h1 my title

and my src/style.styl :

*
    color red

the stylus step is done before the jade step so it should work, but it does'nt.
Any fix ?
Regards,
Millicent Billette

from broccoli-jade.

1000i100 avatar 1000i100 commented on September 28, 2024

problem solved, by using an other module :

var stylus = require('broccoli-stylus');
var renderTemplates = require("broccoli-render-template");

var tree = 'src/';

tree = stylus(tree, {});
tree = renderTemplates(tree,{pretty:true});

module.exports = tree;

with these dependency in place of broccoli-jade : broccoli-render-template and jade

from broccoli-jade.

kylecordes avatar kylecordes commented on September 28, 2024

I have also switched to broccoli-render-template, it fixes this problem and supports Jade and more.

from broccoli-jade.

kylecordes avatar kylecordes commented on September 28, 2024

Yet another alternative:

https://github.com/akvadrako/broccoli-jade-render

(It is almost as if search engines do not exist. Why bother to find an existing tool, and improve it? Better to start yet another alternative to do the same time...)

from broccoli-jade.

sindresorhus avatar sindresorhus commented on September 28, 2024

This project is deprecated.

from broccoli-jade.

Related Issues (3)

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.