aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/comments.json
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-08-08 03:53:36 +0900
committeripknHama <ipknhama@gmail.com>2014-08-08 03:53:36 +0900
commit3018ff063acb747065adea877e3e2ac9423f5233 (patch)
tree110f1a6596242b7837c16f88b4838d6fd93dc93c /tests/template/comments.json
parenta0c93f5b84cc11b30bc6320ac26127832ef8bf7a (diff)
parent001c66b378d200bdecc8a4a692c5a73a7d426b8f (diff)
downloadcrow-3018ff063acb747065adea877e3e2ac9423f5233.tar.gz
crow-3018ff063acb747065adea877e3e2ac9423f5233.zip
Merge branch 'directory-restructuring'
Directory structure changed. Crow becomes a complete header-only library with http_parser_merged.h. Provides amalgamated crow_all.h (all feature in one header file).
Diffstat (limited to 'tests/template/comments.json')
-rw-r--r--tests/template/comments.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/template/comments.json b/tests/template/comments.json
new file mode 100644
index 0000000..30cb927
--- /dev/null
+++ b/tests/template/comments.json
@@ -0,0 +1 @@
+{"__ATTN__":"Do not edit this file; changes belong in the appropriate YAML file.","overview":"Comment tags represent content that should never appear in the resulting\noutput.\n\nThe tag's content may contain any substring (including newlines) EXCEPT the\nclosing delimiter.\n\nComment tags SHOULD be treated as standalone when appropriate.\n","tests":[{"name":"Inline","data":{},"expected":"1234567890","template":"12345{{! Comment Block! }}67890","desc":"Comment blocks should be removed from the template."},{"name":"Multiline","data":{},"expected":"1234567890\n","template":"12345{{!\n This is a\n multi-line comment...\n}}67890\n","desc":"Multiline comments should be permitted."},{"name":"Standalone","data":{},"expected":"Begin.\nEnd.\n","template":"Begin.\n{{! Comment Block! }}\nEnd.\n","desc":"All standalone comment lines should be removed."},{"name":"Indented Standalone","data":{},"expected":"Begin.\nEnd.\n","template":"Begin.\n {{! Indented Comment Block! }}\nEnd.\n","desc":"All standalone comment lines should be removed."},{"name":"Standalone Line Endings","data":{},"expected":"|\r\n|","template":"|\r\n{{! Standalone Comment }}\r\n|","desc":"\"\\r\\n\" should be considered a newline for standalone tags."},{"name":"Standalone Without Previous Line","data":{},"expected":"!","template":" {{! I'm Still Standalone }}\n!","desc":"Standalone tags should not require a newline to precede them."},{"name":"Standalone Without Newline","data":{},"expected":"!\n","template":"!\n {{! I'm Still Standalone }}","desc":"Standalone tags should not require a newline to follow them."},{"name":"Multiline Standalone","data":{},"expected":"Begin.\nEnd.\n","template":"Begin.\n{{!\nSomething's going on here...\n}}\nEnd.\n","desc":"All standalone comment lines should be removed."},{"name":"Indented Multiline Standalone","data":{},"expected":"Begin.\nEnd.\n","template":"Begin.\n {{!\n Something's going on here...\n }}\nEnd.\n","desc":"All standalone comment lines should be removed."},{"name":"Indented Inline","data":{},"expected":" 12 \n","template":" 12 {{! 34 }}\n","desc":"Inline comments should not strip whitespace"},{"name":"Surrounding Whitespace","data":{},"expected":"12345 67890","template":"12345 {{! Comment Block! }} 67890","desc":"Comment removal should preserve surrounding whitespace."}]} \ No newline at end of file