posthtml / posthtml

PostHTML is a tool to transform HTML/XML with JS plugins

Home Page:https://posthtml.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escape character (Lodash template `<% %>`)

Shyam-Chen opened this issue · comments

Need to escape Lodash template syntax (<% %>).

<p>
  <%= foo %>
<p>
import { template as _ } from 'lodash';

import template from './foo.html';

console.log(_(template)({ foo: 'Foo' }));

@Shyam-Chen Hi, see posthtml/posthtml-parser#16 - this must help you.

@Shyam-Chen #231.
close this issue ?

Awesome!

After the release, I will do the test.