summaryrefslogtreecommitdiffstats
path: root/docs/data
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-21 23:02:48 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-21 23:02:48 +0200
commit1b9dc52ef557b3d6892bbe45f011fc11d67543ba (patch)
tree3d7e4657102241f9e8ff38fa598b6cde9cbe0a94 /docs/data
parent4d26ab33dcef704086f43828d1dfb4b8beae2593 (diff)
parentd2ec1a06df8ab6b17ad05cb008d5701b40327d47 (diff)
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json51
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index 6400900af..2a7f727b7 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -2977,6 +2977,42 @@
"Examples": []
}
},
+ "path": {
+ "Join": {
+ "Description": "Join joins any number of path elements into a single path, adding a\nseparating slash if necessary. All the input\npath elements are passed into filepath.ToSlash converting any Windows slashes\nto forward slashes.\nThe result is Cleaned; in particular,\nall empty strings are ignored.",
+ "Args": [
+ "elements"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ slice \"my/path\" \"filename.txt\" | path.Join }}",
+ "my/path/filename.txt"
+ ],
+ [
+ "{{ path.Join \"my\" \"path\" \"filename.txt\" }}",
+ "my/path/filename.txt"
+ ]
+ ]
+ },
+ "Split": {
+ "Description": "Split splits path immediately following the final slash,\nseparating it into a directory and file name component.\nIf there is no slash in path, Split returns an empty dir and\nfile set to path.\nThe input path is passed into filepath.ToSlash converting any Windows slashes\nto forward slashes.\nThe returned values have the property that path = dir+file.",
+ "Args": [
+ "path"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ \"/my/path/filename.txt\" | path.Split }}",
+ "/my/path/|filename.txt"
+ ],
+ [
+ "{{ \"/my/path/filename.txt\" | path.Split }}",
+ "/my/path/|filename.txt"
+ ]
+ ]
+ }
+ },
"safe": {
"CSS": {
"Description": "CSS returns a given string as html/template CSS content.",
@@ -3607,6 +3643,21 @@
],
"Examples": []
},
+ "Anchorize": {
+ "Description": "Anchorize creates sanitized anchor names that are compatible with Blackfriday.",
+ "Args": [
+ "a"
+ ],
+ "Aliases": [
+ "anchorize"
+ ],
+ "Examples": [
+ [
+ "{{ \"This is a title\" | anchorize }}",
+ "this-is-a-title"
+ ]
+ ]
+ },
"Parse": {
"Description": "",
"Args": null,