Discussion:
[bottlepy] Return view instead of template
die go
2014-11-29 00:07:12 UTC
Permalink
Hi all,
i just discovered this awesome framework.
i just want to know (for now) if is possible to disable the templating for
specific routes

ie

@bottle.get('/hello')
def hello():
return bottle.view('hello')


that is not working is just an example. i want to do this because iÂŽm using
angular and {expression} is problem

thanks!!
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thiago Avelino
2014-11-29 03:24:58 UTC
Permalink
I have a project (Open Mining, BI project written in Python) which use the
template engine of bottle and angularjs, I changed[1] the "startSymbol" and
"endSymbol" of angularjs.

More about in angularjs[2]

[1]
https://github.com/avelino/mining/blob/master/mining/assets/app/scripts/app.js#L114:L115
[2] https://docs.angularjs.org/api/ng/provider/$interpolateProvider



Cheers,
Thiago Avelino
@avelino0 <http://twitter.com/avelino0> - avelino.xxx
Post by die go
Hi all,
i just discovered this awesome framework.
i just want to know (for now) if is possible to disable the templating for
specific routes
ie
@bottle.get('/hello')
return bottle.view('hello')
that is not working is just an example. i want to do this because iÂŽm
using angular and {expression} is problem
thanks!!
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...