Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting Meta using jade Template engine

Tags:

node.js

pug

I want to render

<meta name="viewport" content="width=device-width, initial-scale=1.0">

in my index page Html head

is this the correct solution

meta(name="viewport",content="width=device-width, initial-scale=1.0")

like image 860
nitansh bareja Avatar asked Mar 26 '14 06:03

nitansh bareja


People also ask

Is Jade template engines can be used with node js?

Jade is a template engine for Node. js. Jade syntax is easy to learn. It uses whitespace and indentation as a part of the syntax.

What is a jade template?

Jade is a template engine for node. js and the default rendering engine for the Express web framework. It is a new, simplified language that compiles into HTML and is extremely useful for web developers. Jade is designed primarily for server-side templating in node.


1 Answers

Yes, meta(name='viewport', content='width=device-width, initial-scale=1.0') is correct!

When it doubt use http://html2jade.aaron-powell.com/

like image 159
Seth Avatar answered Oct 04 '22 00:10

Seth