{"id":13660076,"url":"https://github.com/unclechu/node-njst","last_synced_at":"2025-08-10T11:17:04.064Z","repository":{"id":66006994,"uuid":"1837026","full_name":"unclechu/node-njst","owner":"unclechu","description":"Node.JS: nJSt (Native JavaScript Templates)","archived":false,"fork":false,"pushed_at":"2014-03-07T14:51:24.000Z","size":411,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T12:10:02.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unclechu.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-02T12:49:48.000Z","updated_at":"2017-06-21T05:19:43.000Z","dependencies_parsed_at":"2023-02-19T21:15:44.063Z","dependency_job_id":null,"html_url":"https://github.com/unclechu/node-njst","commit_stats":null,"previous_names":["unclechu/njst"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/unclechu/node-njst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-njst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-njst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-njst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-njst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unclechu","download_url":"https://codeload.github.com/unclechu/node-njst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-njst/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713884,"owners_count":24463244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:15.974Z","updated_at":"2025-08-10T11:17:04.008Z","avatar_url":"https://github.com/unclechu.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# nJSt (Native JavaScript Templates)\n\n## Installing\n\n    npm install njst\n\n## Usage\n\n### HTML page.html\n\n    \u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003e#{PageTitle}\u003c/title\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        \u003ch1\u003e#{PageTitle}\u003c/h1\u003e\n\n        \u003cul\u003e\n        \u003c# List.forEach(function (item) { #\u003e\n            \u003cli\u003e#{item}\u003c/li\u003e\n        \u003c# }) #\u003e\n        \u003c/ul\u003e\n\n        \u003c# if (ShowMessage) { #\u003e\n            \u003cp\u003enJSt loves you!\u003c/p\u003e\n        \u003c# } #\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n\n### Node.JS test.js\n\n    var njst = require('njst');\n    var fs = require('fs');\n    var http = require('http');\n\n    http.createServer(function (request, response) {\n        fs.readFile('./page.html', function (err, data) {\n            if (err) {\n                res.writeHead(500, {'content-type': 'text/html; charset=utf-8'});\n                res.end(err.toString());\n            }\n\n            var context = {\n                PageTitle: 'nJSt demonstration',\n                List: ['One', 'Two', 'Three'],\n                ShowMessage: true\n            };\n\n            njst.render(data, context, {debug: true}, function (err, out) {\n                response.writeHead(200, {'content-type': 'text/html; charset=utf-8'});\n                response.end(out);\n            });\n        });\n    }).listen(8000);\n\n## Author\n\nViacheslav Lotsmanov (unclechu)\n\n## See also\n\nhttps://github.com/visionmedia/ejs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fnode-njst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funclechu%2Fnode-njst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fnode-njst/lists"}