DevTech101

DevTech101

Bootstrap + nodejs
http://lresende.blogspot.com/2015/01/nodejs-building-html-site-template.html

Express using EJS (not jade the default)
express --ejs node_app2

In the Views > headers.ejs


    
    
    
    <%= title %>
    
                        
            
    
         

    
    

In the index.ejs



<% include header %>

	<% include navbar %>

	
	

Hello, world!

This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.

Learn more »

<% include content %>
<% include footer %>

in the navbar.ejs


In the content.ejs


Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

View details »

In the footer.ejs

© Company 2015

Reference
NodeJS bootstrap howto
Nodejs and express HowTo

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: