
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
ulka-parser
Advanced tools
Ulka Praser is a templating engine made for ulkajs.
npx ulka-parser --t /path/to/template/folder/or/file --o /path/to/output/folder
# OR
npm install -g ulka-parser
ulka-parser --t /path/to/template/folder/or/file --o /path/to/output/folder
npm i ulka-parser
const { render } = require("ulka-parser")
const template = `Hello, I am {% name %}`
const data = render(template, { name: "Roshan Acharya" })
console.log(data)
// Hello, I am Roshan Acharya
You can write nodejs code inside {% %}
in ulka template.
index.ulka
{% const name = "Roshan Acharya".toUpperCase() %}
<h1>Hello, I am {% name %}</h1>
index.html
<h1>ROSHAN ACHARYA</h1>
index.ulka
{% const name = "I Love Javascript" %}
{% name %}
index.html
I Love Javascript
index.ulka
{% const languages = [ { name: "javascript", short: "js" }, { name: "typescript", short: "ts" }, ]; %}
<div>
{% languages.map(lang => `<h1>I Love ${lang.name} (${lang.short}).</h1>`) %}
</div>
index.html
<div>
<h1>I Love javascript (js).</h1>
<h1>I Love typescript (ts).</h1>
</div>
index.ulka
{% const iAmWinner = true %}
{% iAmWinner ? "I am Winner": "I am loser" %}
index.html
I am Winner
{% const dayjs = require('dayjs') %}
{% dayjs().format() %}
const express = require("express")
const { engine } = require("ulka-parser")
const app = express()
app.engine("ulka", engine())
app.set("views", "./views")
app.set("view engine", "ulka")
app.get("/", (req, res) => {
res.render("index", { name: "Roshan Acharya" })
})
app.listen(3000, () => {
console.log("Server listening on port 3000")
})
v0.4.1
FAQs
Templating engine for ulka static site generator
The npm package ulka-parser receives a total of 2,083 weekly downloads. As such, ulka-parser popularity was classified as popular.
We found that ulka-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.