How can I render inline JavaScript with Jade / Pug?

I'm trying to get JavaScript to render on my page using Jade (http://jade-lang.com/) My project is in NodeJS with Express, eveything is working correctly until I want to write some inline...

Why does AngularJS include an empty option in select?

I've been working with AngularJS for the last few weeks, and the one thing which is really bothering me is that even after trying all permutations or the configuration defined in the specification...

Nodejs cannot find installed module on Windows

I am learning nodejs at the moment on Windows. Several modules are installed globally with npm.cmd, and nodejs failed to find the installed modules. Take jade for example, npm install jade...

Syntax highlighting for Jade in Sublime Text 2?

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2.

Jade: Links inside a paragraph

I'm trying to author a few paragraphs with Jade, but finding it difficult when there are links inside a paragraph. The best I can come up with, and I'm wondering if there's a way to do it with...

Comments in Jade/pug

I tried making comments in Jade/pug, but the comments render as text in the HTML. This is my code: doctype html html(lang='en') body / This should be a comment What am I...

Using HTML in Express instead of Jade

How to I get rid of Jade while using Express with Node.JS? I want to just use plain html. In other articles I have seen that people recommended app.register() which is now deprecated in the latest version.

Jade - missing space before text for line x of jade file

I'm making an Express based web application and everytime someone visits this jade file i get the following error: Warning: missing space before text for line 28 of jade file...

Jade to HTML converter

I have started writing an application using nodejs and jade, but after a while my team decided to switch to Django. I would still like to use the web pages written using jade, without having to...

Using Jade Templates (jade-lang.com) client-side

I'd like to use Jade templates client-side. Preferably generated using the Rails 3.1 asset pipeline. I can't really figure out how to do this. Anyone who've stumbled upon the same problem and...

Gulp. Compile all .jade files when child (_*.jade) included

I have next structure: jade ├── _skeleton.jade ├── _header.jade ├── _footer.jade | ├── includes │ └── _include-on-index.jade │ └── _include-on-page-1.jade │ └── _include-on-all-pages.jade | ├──...

Grunt compiling Jade files

I'm trying to configure my Gruntfile to compile all of my Jade files to individual HTML files. For example, if I have the following source folder: source └── templates    ├──...

Jade templating in Meteor

In the Meteor FAQs http://meteor.com/faq/how-do-i-package-a-new-templating-system there is some information about adding a different (than the default Handlebars) templating system. Jade is the...

Does Jade watch *.jade files?

I have no idea how Jade works internally, but I am guessing that it is compiling every template file once and then uses a compiled and cached version for every HTTP request. When I have my Express...

Grunt. Compile all .jade files when child (_*.jade) included

I have next structure: jade ├── _skeleton.jade ├── _header.jade ├── _footer.jade | ├── includes │ └── _include-on-index.jade │ └── _include-on-page-1.jade │ └── _include-on-all-pages.jade | ├──...

What are the pros and cons of both Jade and EJS for Node.js templating?

Jade versus EJS, what are the pros and cons of each and what purposes are each designed for? Are there any other express-compatible template engines that are good and why?

How to use the style tag with jade templates?

This style code worked for me a few months back. I have updated to the latest Jade NPM package and now it is not working. Can some please assist me with the proper way to inline a style in a...

Jade, gulp-jade locals update

is any solution to update locals for jade templates for every build (even if watch jade file)? Now, templates get data only on first build.

Grunt jade error

Whenever I run grunt jade I get an error: Warning: pattern.indexOf is not a function Use --force to continue. Now here is my jade task: jade: { options: { pretty: true ...

What's the use of Jade or Handlebars when writing AngularJs apps

I am new(ish) to the whole javascript full stack applications, and completely new to Angular, so I was hoping somebody can put the record straight for me here. Why would I need to use a templating...

Gulp jade compilation

I'm using gulp-jade and I'm getting this error with one of my templates: 557| 558| > 559| 560| .tabs-wrap(ng-show="eventExists"): .contain-center 561| 562| ...

Combining react and jade

I am working on an isomorphic javascript app with express + react. We started out using jade for server side templates for static content, but combining the two is quickly becoming unwieldy. We...

How to setup jade includes with gulp-jade

I am currently using gulp-jade and I am struggling on how to setup Jade includes in my gulpfile.js.(For clarification, I am referring to this here http://jade-lang.com/reference/includes/) The...

Node.js: Consolidate.js + Jade is not rendering Jade correctly

I'm using [email protected] + [email protected] + [email protected] When I render a page, the output is not as expected. Here's the jade: index.jade extends ../../layouts/default block headIncludes ...

Error downloading jade using npm (npm install -g jade)

I'm trying to download jade via npm on my Mac(Yosemite) but I am getting some errors I can't figure out. I downloaded node and then updated npm after. Then I attempted to install jade and I got...

How to pass variable from jade template file to a script file?

I'm having trouble with a variable (config) declared in a jade template file (index.jade) that isn't passed to a javascript file, which then makes my javascript crash. Here is the file...

Passing variables through Jade templates

It's possible in Jade to pass variables from one template to another?. I want to do something like this: tmp1.jade div.anyClass include...

Rendering HTML in variable using Jade

I have some text stored in a variable which contains some HTML. For example, the <b>cat</b> in the hat. However, when I render it in Jade, it shows up with the tags instead of rendering the...

grunt-jade - how to compile single jade file instead of everything

I have the following in my jade.js file 'use strict'; var config = require('../config'); module.exports = { dist: { options: { pretty: true, debug: false, ...

Gulp Jade Issue

I am trying to compile a jade template then feed it into another gulp process for one file but it just seems to skip the last process.. its almost like it wont recognise it because it was created...