💎 <%= EJS %> 💎
"E" is for "effective." EJS is a simple Templating Language that lets you generate HTML markup with plain JavaScript. 🔥
No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript. 🤷🏻♂️
[ Website ] : http://ejs.co/
https://t.me/pgimg/8
〰〰〰〰〰〰
#ejs #templating #js #node #express
@ProgrammingTip
"E" is for "effective." EJS is a simple Templating Language that lets you generate HTML markup with plain JavaScript. 🔥
No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript. 🤷🏻♂️
[ Website ] : http://ejs.co/
https://t.me/pgimg/8
〰〰〰〰〰〰
#ejs #templating #js #node #express
@ProgrammingTip
Telegram
Programming Tips Resources
Jade-Lang 🐰
Jade is a high performance template engine heavily influenced by Haml and implemented with JavaScript for node and browsers. 💎
Syntax :
Becomes :
Options ✨ :
🔸 Compile Debug - If set to true, the function source will be included in the compiled template for better error messages.
🔹 Add pretty-indentation whitespace to output
https://t.me/pgimg/40
[ Website ] : http://jade-lang.com
[ Npm Package ] : https://www.npmjs.com/package/jade
〰〰〰〰〰〰
#Node #JavaScript #Jade
@ProgrammingTip
Jade is a high performance template engine heavily influenced by Haml and implemented with JavaScript for node and browsers. 💎
Syntax :
doctype html
html(lang="en")
head
title= pageTitle
script(type='text/javascript').
if (foo) bar(1 + 5)
body
h1 Jade - node template engine
#container.col
if youAreUsingJade
p You are amazing
else
p Get on it!
Becomes :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jade</title>
<script type="text/javascript">
if (foo) bar(1 + 5)
</script>
</head>
<body>
<h1>Jade - node template engine</h1>
<div id="container" class="col">
<p>You are amazing</p>
</div>
</body>
</html>
Options ✨ :
🔸 Compile Debug - If set to true, the function source will be included in the compiled template for better error messages.
🔹 Add pretty-indentation whitespace to output
https://t.me/pgimg/40
[ Website ] : http://jade-lang.com
[ Npm Package ] : https://www.npmjs.com/package/jade
〰〰〰〰〰〰
#Node #JavaScript #Jade
@ProgrammingTip
Telegram
Programming Tips Resources