mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
feat: support Jekyll-like include syntax, see #441
This commit is contained in:
@@ -16,9 +16,9 @@ export interface HashValue {
|
||||
*/
|
||||
export class Hash {
|
||||
hash: HashValue = {}
|
||||
constructor (markup: string) {
|
||||
constructor (markup: string, jekyllStyle?: boolean) {
|
||||
const tokenizer = new Tokenizer(markup, {})
|
||||
for (const hash of tokenizer.readHashes()) {
|
||||
for (const hash of tokenizer.readHashes(jekyllStyle)) {
|
||||
this.hash[hash.name.content] = hash.value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user