{"id":45437595,"url":"https://github.com/mrolafsson/telemark","last_synced_at":"2026-03-16T02:28:14.817Z","repository":{"id":57371014,"uuid":"98374028","full_name":"mrolafsson/telemark","owner":"mrolafsson","description":"Super-lightweight templating and generation of HTML (and other markup) with plain JavaScript. Works in the browser and Node.js.","archived":false,"fork":false,"pushed_at":"2018-07-09T19:08:24.000Z","size":480,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-21T11:53:42.615Z","etag":null,"topics":["html","javascript","js","markup","markup-builder","templating"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/telemark","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrolafsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-07-26T03:14:37.000Z","updated_at":"2018-11-25T08:47:02.000Z","dependencies_parsed_at":"2022-09-18T11:41:05.098Z","dependency_job_id":null,"html_url":"https://github.com/mrolafsson/telemark","commit_stats":null,"previous_names":["mrolafsson/stir-up"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrolafsson/telemark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrolafsson%2Ftelemark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrolafsson%2Ftelemark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrolafsson%2Ftelemark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrolafsson%2Ftelemark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrolafsson","download_url":"https://codeload.github.com/mrolafsson/telemark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrolafsson%2Ftelemark/sbom","scorecard":{"id":664581,"data":{"date":"2025-08-11","repo":{"name":"github.com/mrolafsson/telemark","commit":"2ebc8714c83741453c7086b8d7c4c827e8627448"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"46 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-957j-59c2-j692","Warn: Project is vulnerable to: GHSA-m5pj-vjjf-4m3h","Warn: Project is vulnerable to: GHSA-j383-35pm-c5h4","Warn: Project is vulnerable to: GHSA-rm36-94g8-835r","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-p9wx-2529-fp83","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2gp-86p4-5935","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-v2p6-4mp7-3r9v","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T17:32:28.003Z","repository_id":57371014,"created_at":"2025-08-21T17:32:28.003Z","updated_at":"2025-08-21T17:32:28.003Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29704415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T03:17:42.375Z","status":"ssl_error","status_checked_at":"2026-02-22T03:17:31.622Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["html","javascript","js","markup","markup-builder","templating"],"created_at":"2026-02-22T03:24:29.465Z","updated_at":"2026-02-22T03:24:30.059Z","avatar_url":"https://github.com/mrolafsson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mrolafsson/telemark.svg?branch=master)](https://travis-ci.org/mrolafsson/telemark)\n[![Try Telemark on RunKit](https://badge.runkitcdn.com/telemark.svg)](https://npm.runkit.com/telemark)\n\n# Telemark\n\n##### Super-lightweight, minimalist templating and generation of HTML (and other markup) with plain JavaScript. Works in the browser and Node.js.\n\n\n## Getting started\n\nDownload or install with: `npm install telemark`.\n\nTo keep things as compact as possible you can use the library with or without the built-in support for HTML.\n\n```html\n\u003cscript src=\"/telemark.min.js\"\u003e\u003c/script\u003e\u003c!-- Wow only 2K --\u003e\n\u003cscript src=\"/telemark-html-plugin.min.js\"\u003e\u003c/script\u003e\u003c!-- Optional --\u003e\n```\n\nor get both in one call:\n\n```html\n\u003cscript src=\"/telemark-html.min.js\"\u003e\u003c/script\u003e\u003c!-- Gosh only 4K --\u003e\n```\n\nGetting started is super simple, let's say you want to create HTML you start with the `Telemark.Html()` one:\n\n```javascript\nHtml.init(window);\n\nol( $class(\"beautiful\"),\n\tli(\"Foo\"),\n\tli(\"Bar\")\n).make();\n```\n\nThis initialiser will add all the helper methods like `ol()`, and `li()` in this case to the global namespace and when you call `make()` generate the following HTML:\n\n```html\n\u003col class=\"beautiful\"\u003e\n\t\u003cli\u003eFoo\u003c/li\u003e\n\t\u003cli\u003eBar\u003c/li\u003e\n\u003c/ol\u003e\n```\n\nIf you want to generate and insert the markup into a particular DOM element, use the `into()` method.\nIn this case the `ol` and its child elements would be placed in the body of the element with the id: `some_id`.\n\n```\nol( $class(\"beautiful\"),\n\tli(\"Foo\"),\n\tli(\"Bar\")\n).into(\"#some_id\");\n```\n\nNote, you can also use `require()` where the equivalent would be:\n\n```javascript\nvar markup = require(\"telemark/dist/telemark-html.min.js\");\nmarkup.html.init(window);\n```\n\n\u003e Check out this [code example](https://runkit.com/mrolafsson/telemark-with-express-js) generating [HTML](https://telemark-with-express-js-0f6jnafj3umz.runkit.sh) server-side with [Express.js](http://expressjs.com)!\n\n#### `text()`\n\nFor strings you're adding to the body of any element you can either refer to it directly (e.g. `li(\"foo\")`) or wrap it in `text()`. You might want to do that when adding multiple text elements or to make use of utility functions like `join(separator)`:\n\n```javascript\nli( text(\"The\", \"quick\", \"brown\", \"fox\").join(\" \") );\n```\n\n\n### Iteration\n\nDid I hear you say loop? Well, golly gosh what a coincidence. This is how you'd generate markup using the built-in `iterate()` method:\n\n```javascript\nHtml.init(window);\n\nvar marx_brothers = ['Groucho', 'Harpo', 'Chico', 'Gummo', 'Zeppo'];\n\nol( $class('marx'),\n\titerate(marx_brothers, function (bro) {\n\t\treturn li( $class(bro), bro );\n\t})\n).make()\n```\n\nIn this example you specify the sub-elements you need per entry using an anonymous function. This means that you have full control over the handling of each element in the collection.\n\nYou can also do object iteration:\n\n```javascript\nvar obj = { Perch: 'Embiotocidae', Pike: 'Ptychocheilus grandis', Yellowtail: 'Seriola dorsalis'};\nol(\n    iterate(obj, function (value, key) {\n        return li( text(key), text(': '), i(value) );\n    })\n).make()\n```\n\nNote that the first argument passed to the function is the value, resulting in the following HTML in this case:\n\n```html\n\u003col\u003e\n    \u003cli\u003ePerch: \u003ci\u003eEmbiotocidae\u003c/i\u003e\u003c/li\u003e\n    \u003cli\u003ePike: \u003ci\u003ePtychocheilus grandis\u003c/i\u003e\u003c/li\u003e\n    \u003cli\u003eYellowtail: \u003ci\u003eSeriola dorsalis\u003c/i\u003e\u003c/li\u003e\n\u003c/ol\u003e\n```\n\n\u003eYou can pass into each function any number of elements, and attributes and the library will construct the right markup. Note that if you pass in a simple string it will be used for the body of the element.\n\n\n### Conditional logic\n\nYou can wrap any attributes or elements in a `when( some_expression, ... )`. Only when the first argument evaluates to `true` will the rest of the parameters be executed:\n\n```javascript\nul(\n\tli( when(false, draggable(false)),\n\t\t'Ferris'\n\t),\n\tli( when(true, draggable(true)),\n\t\t 'Cameron'\n\t),\n\twhen( false, \n\t\tli('Rooney')\n\t),\n\tli( when(false, draggable(false)),\n\t\t'Sloane'\n\t)\n)\n```\n\nThis applies to both attributes and elements as this example shows:\n\n```html\n\u003cul\u003e\n\t\u003cli\u003eFerris\u003c/li\u003e\n\t\u003cli draggable=\"true\"\u003eCameron\u003c/li\u003e\n\t\u003cli\u003eSloane\u003c/li\u003e\n\u003c/ul\u003e\n```\n\nIn this case, principal Rooney is not added to the list, and only Cameron is draggable.\n\n\n## Reusable components\n\nYou can specify and register your own components that encapsulate logic and return a particular structure:\n\n```javascript\nTelemark.specify('telephone', function (name, number) {\n    return a( href('tel:' + number), $class('phone-number'), text(name) );\n});\n```\n\nYou can then use these like any other element except that you pass in the parameters you specified:\n\n```javascript\nol(\n    li(\n        telephone( 'Ghostbusters', '+1-800-555-2368' )\n    )\n)\n```\n\nThis would add your component with the specified properties, resulting in this case in the following HTML:\n\n```html\n\u003col\u003e\n    \u003cli\u003e\n        \u003ca href=\"tel:+1-800-555-2368\" class=\"phone-number\"\u003eGhostbusters\u003c/a\u003e\n    \u003c/li\u003e\n\u003c/ol\u003e\n```\n\n\n### Component nesting\n\nIf you need components to be able to nest other components you can use the following pattern to define them:\n\n```javascript\nTelemark.specify('brothers', function (collection_of_brothers, nested) {\n    return  section(\n                ol( $class('brothers'),\n                    iterate(collection_of_brothers, function (a_name) {\n                        return nested(a_name);\n                    })\n                )\n            );\n});\nTelemark.specify('brother', function (a_name) {\n    return  li( $class('brother'),\n                text(a_name)\n            );\n});\n```\n\nYou can then use them like this:\n\n```javascript\nvar marx_brothers = ['Groucho', 'Harpo', 'Chico', 'Gummo', 'Zeppo'];\n\nbrothers(marx_brothers, function (name) {\n        return brother(name);\n}).make()\n```\n\n\n### Building in stages\n\nYou don't have to create the markup using one fluent sequence. You can do this in stages and work with the elements at each stage, `append`/`prepend` elements, `set` attributes etc.\n\n```javascript\nvar brothers = ol( $class('marx') );\n\nvar harpo = li('Harpo');\nharpo.set( draggable(true) );\nbrothers.append(harpo);\n\nbrothers.prepend( li('Groucho') );\nbrothers.append( li('Chico') );\n\nbrothers.make();\n```\n\t\t\n...will somewhat predictably generate:\n\n```html\n\u003col class=\"marx\"\u003e\n\t\u003cli\u003eGroucho\u003c/li\u003e\n\t\u003cli draggable=\"true\"\u003eHarpo\u003c/li\u003e\n\t\u003cli\u003eChico\u003c/li\u003e\n\u003c/ol\u003e\n```\n \n### Markup methods\n\n#### `make()`\nGenerates and returns the markup as a string.\n\n#### `into(\"query_selector\", [element, default: document])`\nGenerates and inserts the markup into either the `document` or an element specified for the given [query selector](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector).\nThe example below would place the `\u003col\u003e` and its child elements in the body of the first element with the class `i_have_class`.\n\n```\nol( $class(\"beautiful\"),\n\tli(\"Foo\"),\n\tli(\"Bar\")\n).into(\".i_have_class\");\n```\n\n\n#### Other functions for manipulating markup\n\n##### `append( some_telemark_expression )`\nAppend some markup based on a Telemark expression to the element. You do not need to invoke `make()` for the expression you're appending.\n\n##### `prepend( some_telemark_expression )`\nPrepend some markup based on a Telemark expression to the element. You do not need to invoke `make()` for the expression you're prepending.\n\n##### `set( some_telemark_attribute )`\nSet a particular attribute on the element in question. This returns a reference to the element so you can chain this and other expressions.\n\n \n## Generating markup using your own element specification\n\nIn this case you don't start with `Telemark.Html()` but the core object `Telemark()`. You can pass in your own array of element names which will be turned into helper methods. You can either have these added to the global namespace like this:\n\n```javascript\nTelemark.init(['foo', 'bar'], window);\n\n// var markup = require('telemark);\n// markup.init(['foo', 'bar'], window);\n\nvar my_foo = foo(\n\tbar('One'), \n\tbar('Two')\n).make();\n```\n\n...will return:\n\n```xml\n\u003cfoo\u003e\n\t\u003cbar\u003eOne\u003c/bar\u003e\n\t\u003cbar\u003eTwo\u003c/bar\u003e\n\u003c/foo\u003e\n```\n\nNamespace prefixes are supported but the `:` needs to be replaced with an object dot notation to be a valid identifier:\n\n```javascript\nTelemark.init(['movie:science-fiction'], window);\n\nmovie.science_fiction().make();\n```\n\n...will return:\n\n```xml\n\u003cmovie:science-fiction\u003e\u003c/movie:science-fiction\u003e\n```\n\n\u003eWe try and deal with special characters in element/attribute names e.g. replacing `-` with `_`:\n\nYou can use your own holder to keep the global namespace nice and tidy:\n\n```javascript\nvar _ = Telemark.init(['foo', 'bar']);\n_.foo(\n    _.bar('One'),\n    _.bar('Two')\n).make();\n```\n\nFor HTML plugin you would use the same methodology:\n\n```javascript\nvar _ = Html.init();\n```\n\nIf you also want to specify helpers for attributes you can do that:\n\n```javascript\nvar namespace = {\n\telements: ['animals', 'cat', 'dog'],\n\tattributes: ['sound', 'leash']\n};\nTelemark.init(namespace, window);\n\nanimals(\n\tdog( sound('woof'), 'Benji' ),\n\tcat( sound('meow'), leash('no'), 'Garfield' )\n)\n```\n\nOutput:\n\n```xml\n\u003canimals\u003e\n\t\u003cdog sound=\"woof\"\u003eBenji\u003c/dog\u003e\n\t\u003ccat sound=\"meow\" leash=\"no\"\u003eGarfield\u003c/cat\u003e\n\u003c/animals\u003e\n```\n\nYou can add any element, regardless of what helper methods you specified using the `el()` function:\n\n```javascript\nTelemark.init([], window);\n\nel('foo', \n\tel('bar', attr('name', 'thirst'), \n\t\t'First'\n\t),\n\tel('bar', \n\t\t'Second'\n\t),\n\tel('bar', \n\t\tel('zip',\n\t\t\t'Third'\n\t\t)\n\t)\n)\n```\n\n...which would conjure up this stirring bit of exemel poetry:\n\n```xml\n\u003cfoo\u003e\n\t\u003cbar name=\"thirst\"\u003e\n\t\tFirst\n\t\u003c/bar\u003e\n\t\u003cbar\u003e\n\t\tSecond\n\t\u003c/bar\u003e\n\t\u003cbar\u003e\n\t\t\u003czip\u003eThird\u003c/zip\u003e\n\t\u003c/bar\u003e\n\u003c/foo\u003e\n```\n\n## Bonus Points: Generating JsDoc to suppress IDE warnings\n\nYou can use `Telemark.JsDoc` plugin to generate JsDoc snippets to suppress any warnings the IDE may give you for the helper methods:\n\n```\nvar funcs = new JsDoc();\n\nvar namespace = {\n    elements: ['animals:domestic', 'cat', 'dog'],\n    attributes: ['sound', 'leash']\n};\nTelemark.init(namespace, funcs);\n\nconsole.log(funcs.create_jsdoc());\n\n```\n\nThen copy/paste the snippets into your JS codebase:\n\n```\n/**@name iterate*/\n/**@name when*/\n/**@name attr*/\n/**@name el*/\n/**@name animals*/\n/**@namespace animals*/\n/**@name domestic*/\n/**@name cat*/\n/**@name dog*/\n/**@name sound*/\n/**@name leash*/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrolafsson%2Ftelemark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrolafsson%2Ftelemark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrolafsson%2Ftelemark/lists"}