Displaying 1 to 11 from 11 results

hyperx - 🏷 - tagged template string virtual dom builder

  •    Javascript

This module is similar to JSX, but provided as a standards-compliant ES6 tagged template string function. hyperx works with virtual-dom, react, hyperscript, or any DOM builder with a hyperscript-style API: h(tagName, attrs, children).

nanohtml - HTML template strings for the Browser with support for Server Side Rendering in Node

  •    Javascript

HTML template strings for the Browser with support for Server Side Rendering in Node. By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.

hyperscript-attribute-to-property - Convert hyperscript attributes to properties

  •    Javascript

Some html attributes have different JavaScript property names. The most annoying of these is class v.s. className.Works with virtual-dom, react, hyperscript, or any DOM builder with a hyperscript-style API: h(tagName, attrs, children).




shell-escape-tag - An ES6 template tag which escapes parameters for interpolation into shell commands

  •    Javascript

This module exports an ES6 tagged-template function which escapes (i.e. quotes) its parameters for safe inclusion in shell commands. Parameters can be strings, arrays of strings, or nested arrays of strings, arrays and already-processed parameters. The exported function also provides two helper functions which respectively escape and preserve their parameters and protect them from further processing.

outdent - Remove indentation from ES6 template strings

  •    TypeScript

ES6 template strings are great, but they preserve everything between the backticks, including leading spaces. Sometimes I want to indent my template literals to make my code more readable without including all those spaces in the string. Outdent will remove those leading spaces, as well as the leading and trailing newlines.

regexr - For composing regular expressions without the need for double-escaping inside strings.

  •    Javascript

Easily compose regular expressions. Doing this with strings would otherwise be tedious due to having to double-escape things. Regexr provides an ES6 template tag function that makes it easy to compose RegExps using template strings without double-escaped hell.


html-tagged-template - Proposal to improve the DOM creation API so developers have a cleaner, simpler interface to DOM creation and manipulation

  •    Javascript

Improve the DOM creation API so developers have a cleaner, simpler interface to DOM creation and manipulation. To add an attribute only when it's value is true (such as disabled), use attrName?="${value}". If the value is true, the attribute will be added in the output, otherwise it will be omitted from the output.

vomit - :mask: a high order function using virtual dom to build user interfaces

  •    Javascript

Vomit is a JavaScript library for building stateless user interfaces. Vomit does not force you into any syntax/API but instead uses the power of JavaScript template literals built in your browser. Quickly create DOM element that you can compose with Objects, Arrays, other DOM elements, Functions, Promises and even Streams.