Implement .DocFlags directive and tests. It holds all the boolean-typed front matter values.

This commit is contained in:
Maxim Kupriianov
2016-02-22 13:53:47 +03:00
parent c12847e5ba
commit c7674e2060
6 changed files with 114 additions and 23 deletions
+4
View File
@@ -0,0 +1,4 @@
Doc.var_string {{.Doc.var_string}}
Doc.var_bool {{.Doc.var_bool}}
DocFlags.var_string {{.DocFlags.var_string}}
DocFlags.var_bool {{.DocFlags.var_bool}}
+4
View File
@@ -0,0 +1,4 @@
---
var_string: hello
var_bool: true
---