我怎样才能循环 google-ctemplate模板中的库?
最佳答案
部分是循环和条件的 google-ctemplate 答案。
语法:
{{#SECTION_NAME}}
Section contents. Can have nested sections.
{{/SECTION_NAME}}
迭代部分 0 或 1 次 - 您将得到 if 语句。迭代 n 次 - 你会得到循环。
关于c++ - 在 Google 的 CTemplate 中循环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6983572/