Hi Richard,
thanks for your reply. I'm did change the delimiter as you described in the
model. I changed the delimiters in all of the html files in view.
response.delimiters = ('{[',']}'. I have a snippet from the vuejs website.
However when loading the view it does not seem to recognise {{message}}.
Any help would be appreciated!!
thanks,
John
{[extend 'layout.html']}
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
})</script>
<div id="app">
<p>{{message}}</p>
</div>
<h1>This is the default/vgrid.html template</h1>
{[=BEAUTIFY(response._vars)]}
On Thursday, January 26, 2017 at 4:38:54 PM UTC+1, Richard wrote:
>
> Do you use the web2py layout.html?
>
> Did you set proper web2py delimiters?
>
> http://web2py.com/books/default/chapter/29/05/the-views#The-views
>
> Vue.JS use {{}} as web2py you need to change web2py delimiters, I like (so
> it stays readable) :
>
> response.delimiters = ('{[',']}')
>
>
> Richard
>
>
> On Thu, Jan 26, 2017 at 10:26 AM, 'John Philip' via web2py-users <
> [email protected] <javascript:>> wrote:
>
>> Hi Massimo,
>>
>> I downloaded your scaffolding app but for some reason in the main.html
>> file vuejs does not seem to recognize ${doc.title} and ${doc.body} . Am I
>> missing something?
>>
>> thanks and regards,
>>
>> John
>>
>> On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro
>> wrote:
>>
>>> I am becoming a huge fan of vue.js. Any other user here?
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.