Naturally Processed Meals
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



    DHTMLPlus is an HTML Template Framework built for nodeJS, It has support for Azure. It is designed to help Web Developers build websites quickly and intergrate nodeJS at thier own pace.

    DHTMLPlus uses HTML pages as templates and JSON files for content. Cheerio is used to merge in data and content serverside. Templates and content are stored seperate from the base code in Azure Blob Storage or local dir. This allows one code base to support unlimited sites.

    Guides / How-to's

    DHTMLPlus.node wiki Guides and detailed help topics.


    npm install dhtmlplus

    Real World Example This is my Git Project I use with Azure to support 20 sites. Uses both local and Azure.

    Development Setup

    In your code folder, create a file called local.js

    exports.devKeys = {
        "AZURE_STORAGE_ACCOUNT": "name here",
        "AZURE_STORAGE_ACCESS_KEY":"key value here",
        "port": 80,
        "useCloudData": false,
        "useCluster": true
    /* settings for video streaming */ = {
        settings: {
            "AZURE_STORAGE_ACCOUNT": "name here",
            "AZURE_STORAGE_ACCESS_KEY":"key value here",
            tmdbApiKey: "key value here",
            template : {
                PartitionKey : "movie",
                RowKey: 0,
                update: false,
                own: false,
                MyDb: "0",
                TMDb: 0,
                IMDb: "",
                popularity: 0,
                adult: false,
                name: "",
                nameSort: "",
                type: "",
                overview: "",
                rating: "",
                certification: "",
                url: "",
                released: "",
                runtime: "",
                homepage: "",
                poster: "/images/no-poster.jpg",
                backdrop: "",
                tagline: "",
                collection: {},
                categories: {},
                keywords: {},
                cast: {},
                backdrops: {},
                filePath: "",
                virtualPath: "",
                file: ""
        transcode: {
            "mp4": "mp4",
            "avi": "webm",
            "mkv": "webm",
            "mkv": "webm",
            "m4v": "webm"
        paths: {
            "movies": "M:/Movies",
            "movies-3d": "M:/Movies-3D"
        pathTypes: {
            "movies": "movie",
            "movies-3d": "movie-3D"

    In your code folder, modify config.js for your environments

    exports.config = {
        "LOCAL": {
            endpoint: {
                "": { subDomain: "hasissues", port: 80 },
                "": { subDomain: "preview", port: 80 },
                "": { subDomain: "www", port: 80 }
            redirect: {
                "": { subDomain: "", subDomainPort: 80, directTo: "www", directToPort: 80 }
        "AZURE": {
            endpoint: {
                "": { subDomain: "hasissues", port: 80 },
                "": { subDomain: "www", port: 80 }
            redirect: {
                "": { subDomain: "", subDomainPort: 80, directTo: "www", directToPort: 80 }


    • create a DNS/Host entry for that points to your development machine.

    Template Setup

    • Create a templates folder in you code folder and Exclude from git
    • Create a sub folder for each website. Example: hasissues-com.
    • the default page should be home.htm
    <head fullPage="true" masterPage="MasterPage" codebehind="true">
        <h1 id="content_01" contentEditable="true">New H1 Title Text</h1>
        <p id="content_08" contentEditable="true">New Paragraph Text</p>
        <h2 id="content_News_title" contentEditable="true">Title</h2>
        <ul id="content_News" contentEditable="true"><li>Current</li></ul>
        <div style="clear:both;"></div>

    Server Side Code Behind

    Code Behind lets you create server side script to execute on your templates. In the site template folder, create a js file with the same name as your template file. Example home.js for the code behind for home.htm

    var codebehind = function($, path, response) {

    Publishing Site Templates

    Publish only works from your LOCAL node server.

    • Create a Azure Blob Storage folder with the name of your site. Example: hasissues-com.
    • Browse to, this will publish your site to your blob storage account.


    npm i dhtmlplus

    Downloadsweekly downloads








    last publish


    • avatar