on second thought (or third, or fourth), don't worry about this. i'm going to redo my setup so i don't have to pull code from the db or try to template templates.
thanks, matt On Dec 27, 1:02 pm, mattynoce <[email protected]> wrote: > hm. this is true, but what i'm looking to do is a little different. > > basically i want to do templating like you do in the views. so my view > would look like this: > > __ > hello, {{=user.first_name}}, > > {{=instruction.step}} > __ > > and instruction.step might have text like "your last name is > {{=user.last_name}}" -- is there a way to run code back through the > templating software? so that instruction.step could be parsed and pull > out {{=user.last_name}}? > > i know this doesn't seem like a great idea, and i'm working to find > ways around it. but being able to use the db to do some templating > would be helpful for now. > > thanks, > > matt > > On Dec 27, 11:16 am, mdipierro <[email protected]> wrote: > > > cube2py does that. > > >http://code.google.com/p/cube2py/source/browse/models/plugin_wiki.py?... > > > On Dec 27, 12:56 pm, mattynoce <[email protected]> wrote: > > > > bump. any thoughts on running code stored in the db through the web2py > > > interpreter? > > > > On Dec 23, 3:17 pm, mattynoce <[email protected]> wrote: > > > > > hi all. i know this doesn't sound like a superb idea, but i may have > > > > to do something like it. > > > > > i have data coming from the db and being displayed to the user as > > > > instructions. "do this," "go there," etc. > > > > > i'd like to have that data executed in the environment, so i could say > > > > "do this, {{=user.first_name}}." but when i say > > > > {{=XML(instruction.step)}} it spits out the raw text but doesn't > > > > execute it. > > > > > this only happens for db info that we put in, no user data. is there a > > > > way to run it through the web2py interpreter before displaying it to > > > > the user? > > > > > thanks, and happy holidays. > > > > > matt > >

