Programming Tips 💡
51.6K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips 💡
Articles 📕
Resources 👾
Design Patterns 💎
Software Principles

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
💎 <%= 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
Jade-Lang 🐰

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