docs: introduce JS script to escape for Hexo, fixes #480

This commit is contained in:
Harttle
2022-02-24 01:04:50 +08:00
parent dab8a29070
commit 2b0c5696bc
4 changed files with 24 additions and 10 deletions
+3 -3
View File
@@ -8,14 +8,14 @@ import { InternalUndefinedVariableError } from '../util/error'
export class Context {
/**
* insert a Context-level empty scope,
* for tags like {% capture %} {% assign %} to operate
* for tags like `{% capture %}` `{% assign %}` to operate
*/
private scopes: Scope[] = [{}]
private registers = {}
/**
* user passed in scope
* {% increment %}, {% decrement %} changes this scope,
* whereas {% capture %}, {% assign %} only hide this scope
* `{% increment %}`, `{% decrement %}` changes this scope,
* whereas `{% capture %}`, `{% assign %}` only hide this scope
*/
public environments: Scope
/**