# beardless **Repository Path**: mirrors_marcelklehr/beardless ## Basic Information - **Project Name**: beardless - **Description**: Beardless templating for node.js. Start shaving! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Beardless - DSL-less html templating engine for node.js [](https://travis-ci.org/marcelklehr/beardless) ## Why? Ok, there's mustache, there's ejs, jade and some others I haven't looked at in detail. There are quite good templating engines out there allready, so why do I have to reinvent the wheel? Now, let me get this straight from the start: I didn't reinvent the wheel. The majority of the existing templating engines implement some form of DSL. Mustache, for example, with it's nice {{mustache}} syntax, brags about being `logic-less`. But, by forcing you to use variables (and more importantly partial includes!), that you have to explicitly put somewhere in your template, you do end up squashing logic into your templates that you would want to have in your controller. This is critical, if you want to implement some plugin system, where plugins should be able to extend the user interface, because your templates limit the ability of plugins to extend the UI. You don't want this! Another problem, is the use of DSLs itself. By implementing their own meta-language that is incompatible to the HTML spec and other templating languages, todays templating engines make a designers life harder, having to learn and understand the different reincarnations of templating languages. I believe, the very idea of a 'templating language' is wrong. That's why I created **beardless**. Inspired by [plates](https://github.com/flatiron/plates) and utilizing [jsdom](https://github.com/tmpvar/jsdom), beardless lets you write your templates in pure, beardless HTML, while still providing all features you'd expect from an advanced templating engine (well, not quite yet, but stay tuned). ## Example Your params: ```js { title: "The template engine site" , post: { title: "Next generation templating: Start shaving!" , text: "TL;DR You should really check out beardless!" , comments: [ {text: "Hey cool!", author:"mike"} , {text: "Really gotta check that out...", author:"steve"} ] } } ``` Your template: ```html
TL;DR You should really check out beardless!
Hey cool!
mike
Really gotta check that out...
steve