mustache:mustache 模板语言的 C 实现

时间:2021-06-20 17:17:16
【文件属性】:
文件名称:mustache:mustache 模板语言的 C 实现
文件大小:26KB
文件格式:ZIP
更新时间:2021-06-20 17:17:16
C 胡子 C 实现 支持的功能 普通变量标签 未转义的变量标签 注释 部分 倒置部分 标记分隔符 使用示例 #include #include #include "src/mustache.h" char example_text[] = "Hello {{name}}\n" "You have just won {{value}} dollars!\n" "{{#in_ca}}" "Well, {{taxed_value}} dollars, after taxes.\n" "{{/in_ca}}" "{{^in_ca}}" "No tax!!\n"
【文件预览】:
mustache-master
----main.c(6KB)
----inc()
--------text.h(406B)
--------util.h(358B)
--------mustache.h(2KB)
--------tags.h(2KB)
--------strings.h(1024B)
--------text_file.h(429B)
--------text_parsed.h(422B)
--------position.h(488B)
----tests()
--------test_tags.c(4KB)
--------test_position.c(1KB)
--------tpl.mustache(167B)
--------minunit.h(812B)
--------test_text.c(2KB)
--------tests.c(10KB)
--------tpl_large.mustache(3KB)
--------file_test.txt(3KB)
----src()
--------tags.c(12KB)
--------strings.c(2KB)
--------text_parsed.c(614B)
--------mustache.c(2KB)
--------text.c(594B)
--------util.c(3KB)
--------text_file.c(593B)
--------position.c(373B)
----.gitignore(51B)
----Makefile(2KB)
----README.md(1KB)

网友评论