Skip to content

[DEPRECATED] Write the templates in your Meteor Application using Handlebars and Jade instead of HTML and Handlebars

Notifications You must be signed in to change notification settings

SimonDegraeve/meteor-jade-handlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED AND NO LONGER MAINTAINED

Jade-handlebars for Meteor

Write the templates in your Meteor Application using Handlebars and Jade instead of HTML and Handlebars.

Why?

Jade is a high performance template engine heavily influenced by Haml. Main features are great readability, filters (stylus, less, markdown, coffee-script, etc), flexible indentation,...

How?

Instead of writing (demo.html):

<head>
  <title>demo</title>
</head>

<body>
  {{> hello}}
</body>

<template name="hello">
  <h1>Hello World!</h1>
  {{greeting}}
  <input type='button' value="Click"/>
</template> 

You may write (demo.jade):

head
  title test-jade-handlebars

body
  {{> hello}}

template(name="hello")
  h1 Hello World!
  {{greeting}}
  input(type="button", value="Click")

See more details with the todos example.

Installation

To install Jade-handlebars using Atmosphere, simply install Meteorite.

$ npm install -g meteorite

Navigate to your Meteor project directory and add the package.

$ mrt add jade-handlebars

If you use pre-0.6.0 Meteorite you also need to run your project using mrt instead of meteor. With Meteorite 0.6.0 or newer use mrt install to install/update your smart packages and plain meteor to run the server.

Todo

Write tests

About

[DEPRECATED] Write the templates in your Meteor Application using Handlebars and Jade instead of HTML and Handlebars

Resources

Stars

Watchers

Forks

Packages

No packages published