Giter Club home page Giter Club logo

assemble-jade's People

Contributors

alejandroiglesias avatar welldan97 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

assemble-jade's Issues

Support for YFM

Will the Jade files support YFM in the same way as the handlebars one?

Error loading engine

(grunt -v)

Running "assemble:normal_pages" (assemble) task
Verifying property assemble.normal_pages exists in config...OK
Files: layouts/textpage.jade -> dist/
Assemble options: (none)
Options: layout="textpage", partials=[], data="layouts/data.json", assets="assets/built", ext=".html", flatten, production=false, engine="jade", layoutdir="layouts", layoutext=".jade"
Assembling
Steps: 6
validating options
Error loading engine: jade
Error: Cannot find module 'jade'
extension
layouts/textpage.jade
Warning: Cannot read property 'init' of undefined Use --force to continue.

Gruntfile.js

        assemble: {
            options: {
                flatten: true,
                production: false,
                assets: "assets/built",
                engine: "jade",
                layoutdir: "layouts",
                layoutext: ".jade"
            },

            normal_pages: {
                options: {
                    data: "layouts/data.json",
                    layout: "textpage"
                },
                files: {
                    "dist/": [ "layouts/textpage.jade" ]
                }
            }
        },

node v0.10.31
npm v1.4.23
grunt v0.4.5
grunt-cli v0.1.13

Fatal Error: Callback was already called.

Question...I installed the assemble-jade plugin but am getting the following error:

Assembing dist/blog.html OK
Assembling dist/blog.html ERROR
Fatal Error: Callback was already called.

I am using Windows 7 64-bit, maybe this is my first mistake :p.
Here is my essemble task:

assemble: {
  pages: {
    options: {
      engine: 'jade',
      flatten: true,
      assets: '<%= config.dist %>/assets',
      layout: '<%= config.src %>/templates/layouts/layout.jade',
      data: '<%= config.src %>/data/*.{json,yml}',
      partials: '<%= config.src %>/templates/partials/*.jade',
      plugins: ['assemble-contrib-permalinks','assemble-contrib-sitemap'],
    },
    files: {
      '<%= config.dist %>/': ['<%= config.src %>/templates/pages/*.jade']
    }
  }
},

Helper

What is the syntax to call a helper?

When I try something like:
!= lowercase('HELLO')

I get
Warning: lowercase is not a function

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.