Created
November 6, 2016 09:53
-
-
Save simonmcmanus/903b0ce6d2cb190bfbc4a50cc57c0b36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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