welldan97 / assemble-jade Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Will the Jade files support YFM in the same way as the handlebars one?
(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
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']
}
}
},
How do I get the body content to display?
= contents
doesnt work
What is the syntax to call a helper?
When I try something like:
!= lowercase('HELLO')
I get
Warning: lowercase is not a function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.