Jinja2CppLight icon indicating copy to clipboard operation
Jinja2CppLight copied to clipboard

Can I use Vector of strings in for loop?

Open mennahmostafa opened this issue 8 years ago • 1 comments

Is it possible to do something like this:

{% for auto j: myStringVector %} .. {% endfor %}

mennahmostafa avatar May 26 '16 19:05 mennahmostafa

I use Lua for everything now. see any of the OpenCL files, *.cl in https://github.com/hughperkins/cltorch/tree/master/src/lib eg https://github.com/hughperkins/cltorch/blob/master/src/lib/THClApply.cl

I've factorized out the lua templater into https://github.com/hughperkins/luacpptemplater

Lua is super lightweight (~46KB or so?), but it's an actual real scripting language. So it's perfect for this. I use it for templating OpenCL kernels, at runtime. It works great. No painpoints :-)

hughperkins avatar May 27 '16 07:05 hughperkins