Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including telemark with all npm packages installed. Try it out:

var markup = require("telemark/dist/telemark-html.min.js"); markup.html.init(this); var wikipedia_url = 'https://en.wikipedia.org/wiki/'; // Create reusable components markup.specify('brother', function (first_name) { return a( href(wikipedia_url + first_name + '_Marx'), target('_blank'), text(first_name) ) }); var brothers = ['Groucho', 'Harpo', 'Chico']; // Build markup with built-in methods for elements, iteration, conditionals etc. section( h1('Marx Brothers on Wikipedia'), ol( iterate( brothers, function (name) { return li( brother(name) ); }), li( $class('other'), brother('Gummo') ), when ( 0 > 1, li( brother('Karl') ) ), li( $class('other'), brother('Zeppo') ) ) ).make();

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

telemark v2.1.1

Library for generating HTML (well any sort of markup) with JavaScript

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free