Jade

Showing 7 posts.

use gigya to share

Posted in Jade, JavaScript by dake

How to use Gigya to share and comment

Read more...

Simple Angular Form at Keystone.js

Posted in Node.js, Angular.js, Express.js, Jade by dake

Angular.js with keystone.js

Read more...

Jade - Quick Helper

Posted in Jade by dake

List of tips for Jade Template

Read more...

Use Express.js default template with Node.js

Posted in Express.js, Node.js, Jade by dake

Use Express.js default template with Node.js

This blog will show how to use Express.js default template on your local machine. Also deploy it to the cloud to verify it working. The IDE using at this blog is Sublime Text and Cloud9 IDE.

Read more...

Jade - Use Variable

Posted in Jade by dake

Jade Variable Example

following h1 will show's the "hello, h1 will be this."

- foo = "hello, h1 will be this." h1=foo

more example you can find at here.

Jade Variable example

 

Read more...

Jade - Add CSS class

Posted in Jade by dake

condition for adding css class to html in Jade.

Example Code

append css class active when variable is equal to 1. The variable data.Valueis coming from node.js server side.

input(type='submit' value='button' class="btn btn-link" name="number")(class= data.Value === 1 ? "active" : "")

The Html Code

The actual html code will generate like following.

input class="btn btn-link active" name="pageNumber" type="submit" value="1"

Read more...

Convert Jade to Html and Vice Versa

Posted in Jade by dake

http://html2jade.org/

Nice site powered by jade, convert html to jade template and vice versa.

http://naltatis.github.io/jade-syntax-docs/

Jade Template Syntax Documentation by Example

Read more...