Deyaa Muhammad Deyaa Muhammad - 1 year ago 98
Jade Question

How to integrate pugjs (jade-lang) with Ember-CLI?

I'm new to npm.

I downloaded

to design an application but also I want to install
to render the html.

so .. I don't have to write a lot of unnecessary html code .

so is there any way to to integrate
(jade-lang) with

Thanks in Advance.

Answer Source

You need to add Broccoli Jade compiler and loaded here for more information check the following resources:


2- //Yoeman generator which may help you to scaffold your project.

However, I strongly recommend you to use emblemjs. An overview of the project is :

    p Introducing Emblem.js: a new templating language
      that compiles to Handlebars.js

      li Indentation-based (like Slim, Jade, HAML, etc.)
      li Compiles to Handlebars

; full compatibility with
     both custom and built-in Handlebars helpers
  li Ember.js-friendly syntax and full compatibility
     with auto-updating functionality.

/ Emblem is HTML5-aware; Render HTML if a line starts with
  known HTML tag, else invoke HB helper or perform property lookup.
  These defaults are easily overridable when necessary.
  each person in people
    li =

  / easy, natural Ember bindAttr support
  h1 class=foo The class name of this element is bound to `foo`
  p class=isActive:flashing:inactive Ember.js bound css classes

  / implicit Ember action handlers
  a click="doIt" href="#" Hello, how are you doing, #{name}?

/ condense nested content into a single line if that's how you roll
#footer: each menu_items: li: href=url: link_text

if something
  p something was true!
  p something was false!
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download