blob: 4671609a3283fbc7be8f342c6e95f3449ea40924 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001'use strict';
2
3// TODO: Automate this. Use Gulp
4const posthtml = require('posthtml');
5const html = require('fs').readFileSync('partials/lightbox.html').toString();
6
7posthtml()
8 .use(require('posthtml-include')({ encoding: 'utf-8', root: 'partials/' }))
9 .process(html /*, options */)
10 .then(function(result) {
11 console.log(result.html);
12 })
13 .catch(function(error) {
14 console.error(error);
15 });