Skip to content

Instantly share code, notes, and snippets.

@simonmcmanus
Created November 6, 2016 09:53
Show Gist options
  • Save simonmcmanus/903b0ce6d2cb190bfbc4a50cc57c0b36 to your computer and use it in GitHub Desktop.
Save simonmcmanus/903b0ce6d2cb190bfbc4a50cc57c0b36 to your computer and use it in GitHub Desktop.
var sizlate = require('sizlate');
var html = '<div id="example"><h1>hello</h1></div>';
var output = sizlate.render(html, { ‘h1’: ‘Goodbye’});
// output = <div id="example"><h1>Goodbye</h1></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment