Re: [web2py] Re: vue.js

2017-07-05 Thread Massimo Di Pierro
My strategy is usually to have a 

 some splash image 

and then after vue = new Vue ({data:{loaded:false}}) set vue.loaded = true;


On Monday, 26 June 2017 08:35:45 UTC-5, Anthony wrote:
>
> Change:
>
> 
>
> To:
>
> 
>
> and add the following CSS rule:
>
> [v-cloak] {
>   display: none;
> }
>
> That will cause the div to remain hidden until after the Vue instance has 
> finished compiling.
>
> Anthony
>
> On Monday, June 26, 2017 at 12:10:35 AM UTC-4, Ben Lawrence wrote:
>>
>> This thread might be a little old but here is a way where you do not have 
>> to change web2py's delimiters, instead change Vue's delimiters. Problem is, 
>> with V2, you got to put all the scripts up front or you will see the 
>> strange delimiters as the page is loading. Here is main.html from that 
>> scaffolding app using Vue V2
>> {{extend 'layout.html'}}
>> 
>>   
>> 
>>   
>> 
>>   
>> 
>> ${ answer }
>> 
>>   
>> 
>>   ${doc.title}
>>   ${doc.body}
>> 
>>   
>> 
>>   
>> 
>>
>> {{block bottomjs}}
>> {{=ASSIGNJS(BASE='/'+request.application+'/')}}
>> https://unpkg.com/vue";>
>> https://unpkg.com/lodash@4.13.1/lodash.min.js";>
>> 
>>
>> docsGET = function(url, data) {
>> return jQuery.getJSON(url, data).fail(self.on_error);
>> };
>>
>> var mainVM = new Vue({
>>   el: '#vue',
>>   delimiters: ['${', '}'],
>>   data: {
>> answer: 'Results',
>> page: '',/* page name */
>> state: {},  /* global page state */
>> keywords: '',   /* example: search field */
>> docs: []/* example search response */
>>   },
>>   watch: {
>> // whenever keywords change, this function will run
>> keywords: function (newKeywords) {
>>   this.answer = 'Waiting ...'
>>   this.getAnswer()
>> }
>>   },
>>   methods: {
>> // _.debounce is a function provided by lodash to limit how
>> // often a particularly expensive operation can be run.
>> // In this case, we want to limit how often we access
>> // the search, waiting until the user has completely
>> // finished typing before making the ajax request. To learn
>> // more about the _.debounce function (and its cousin
>> // _.throttle), visit: https://lodash.com/docs#debounce
>> getAnswer: _.debounce(
>>   function () {
>> if (this.keywords.length < 3) {
>>   this.answer = 'Type more characters...'
>>   return
>> }
>> this.answer = 'Thinking...'
>> var vm = this
>> docsGET(BASE+'default/search',{q: 
>> vm.keywords}).done(function(docs){vm.docs=docs; vm.answer = "Results:"});
>>   },
>>   // This is the number of milliseconds we wait for the
>>   // user to stop typing.
>>   500
>> )
>>   }
>> })
>> 
>> {{end}}
>>
>>
>> On Sunday, February 26, 2017 at 1:54:24 AM UTC-8, St. Pirsch wrote:
>>>
>>> Hi John,
>>> Thanks! it works! Strange though that the untouched scaffolding app 
>>> seems to work for some people and for others not.
>>> Best,
>>> Stephan
>>>
>>> Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip:

 Hi Stephan,

 I tried the brutal approach. I changed the delimiters for web2py on the 
 model and changed all of the views accordingly. I left the delimiters for 
 vuejs as default ('{{' '}}')

 regards,

 John

 On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>
> Hello John,
> Would you mind sharing your solution? 
> Thx,
> Stephan



-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-06-26 Thread Anthony
Change:



To:



and add the following CSS rule:

[v-cloak] {
  display: none;
}

That will cause the div to remain hidden until after the Vue instance has 
finished compiling.

Anthony

On Monday, June 26, 2017 at 12:10:35 AM UTC-4, Ben Lawrence wrote:
>
> This thread might be a little old but here is a way where you do not have 
> to change web2py's delimiters, instead change Vue's delimiters. Problem is, 
> with V2, you got to put all the scripts up front or you will see the 
> strange delimiters as the page is loading. Here is main.html from that 
> scaffolding app using Vue V2
> {{extend 'layout.html'}}
> 
>   
> 
>   
> 
>   
> 
> ${ answer }
> 
>   
> 
>   ${doc.title}
>   ${doc.body}
> 
>   
> 
>   
> 
>
> {{block bottomjs}}
> {{=ASSIGNJS(BASE='/'+request.application+'/')}}
> https://unpkg.com/vue";>
> https://unpkg.com/lodash@4.13.1/lodash.min.js";>
> 
>
> docsGET = function(url, data) {
> return jQuery.getJSON(url, data).fail(self.on_error);
> };
>
> var mainVM = new Vue({
>   el: '#vue',
>   delimiters: ['${', '}'],
>   data: {
> answer: 'Results',
> page: '',/* page name */
> state: {},  /* global page state */
> keywords: '',   /* example: search field */
> docs: []/* example search response */
>   },
>   watch: {
> // whenever keywords change, this function will run
> keywords: function (newKeywords) {
>   this.answer = 'Waiting ...'
>   this.getAnswer()
> }
>   },
>   methods: {
> // _.debounce is a function provided by lodash to limit how
> // often a particularly expensive operation can be run.
> // In this case, we want to limit how often we access
> // the search, waiting until the user has completely
> // finished typing before making the ajax request. To learn
> // more about the _.debounce function (and its cousin
> // _.throttle), visit: https://lodash.com/docs#debounce
> getAnswer: _.debounce(
>   function () {
> if (this.keywords.length < 3) {
>   this.answer = 'Type more characters...'
>   return
> }
> this.answer = 'Thinking...'
> var vm = this
> docsGET(BASE+'default/search',{q: 
> vm.keywords}).done(function(docs){vm.docs=docs; vm.answer = "Results:"});
>   },
>   // This is the number of milliseconds we wait for the
>   // user to stop typing.
>   500
> )
>   }
> })
> 
> {{end}}
>
>
> On Sunday, February 26, 2017 at 1:54:24 AM UTC-8, St. Pirsch wrote:
>>
>> Hi John,
>> Thanks! it works! Strange though that the untouched scaffolding app seems 
>> to work for some people and for others not.
>> Best,
>> Stephan
>>
>> Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip:
>>>
>>> Hi Stephan,
>>>
>>> I tried the brutal approach. I changed the delimiters for web2py on the 
>>> model and changed all of the views accordingly. I left the delimiters for 
>>> vuejs as default ('{{' '}}')
>>>
>>> regards,
>>>
>>> John
>>>
>>> On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:

 Hello John,
 Would you mind sharing your solution? 
 Thx,
 Stephan
>>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-06-25 Thread Ben Lawrence
This thread might be a little old but here is a way where you do not have 
to change web2py's delimiters, instead change Vue's delimiters. Problem is, 
with V2, you got to put all the scripts up front or you will see the 
strange delimiters as the page is loading. Here is main.html from that 
scaffolding app using Vue V2
{{extend 'layout.html'}}

  

  

  

${ answer }

  

  ${doc.title}
  ${doc.body}

  

  


{{block bottomjs}}
{{=ASSIGNJS(BASE='/'+request.application+'/')}}
https://unpkg.com/vue";>
https://unpkg.com/lodash@4.13.1/lodash.min.js";>


docsGET = function(url, data) {
return jQuery.getJSON(url, data).fail(self.on_error);
};

var mainVM = new Vue({
  el: '#vue',
  delimiters: ['${', '}'],
  data: {
answer: 'Results',
page: '',/* page name */
state: {},  /* global page state */
keywords: '',   /* example: search field */
docs: []/* example search response */
  },
  watch: {
// whenever keywords change, this function will run
keywords: function (newKeywords) {
  this.answer = 'Waiting ...'
  this.getAnswer()
}
  },
  methods: {
// _.debounce is a function provided by lodash to limit how
// often a particularly expensive operation can be run.
// In this case, we want to limit how often we access
// the search, waiting until the user has completely
// finished typing before making the ajax request. To learn
// more about the _.debounce function (and its cousin
// _.throttle), visit: https://lodash.com/docs#debounce
getAnswer: _.debounce(
  function () {
if (this.keywords.length < 3) {
  this.answer = 'Type more characters...'
  return
}
this.answer = 'Thinking...'
var vm = this
docsGET(BASE+'default/search',{q: 
vm.keywords}).done(function(docs){vm.docs=docs; vm.answer = "Results:"});
  },
  // This is the number of milliseconds we wait for the
  // user to stop typing.
  500
)
  }
})

{{end}}


On Sunday, February 26, 2017 at 1:54:24 AM UTC-8, St. Pirsch wrote:
>
> Hi John,
> Thanks! it works! Strange though that the untouched scaffolding app seems 
> to work for some people and for others not.
> Best,
> Stephan
>
> Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip:
>>
>> Hi Stephan,
>>
>> I tried the brutal approach. I changed the delimiters for web2py on the 
>> model and changed all of the views accordingly. I left the delimiters for 
>> vuejs as default ('{{' '}}')
>>
>> regards,
>>
>> John
>>
>> On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>>>
>>> Hello John,
>>> Would you mind sharing your solution? 
>>> Thx,
>>> Stephan
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-02-26 Thread St. Pirsch
Hi John,
Thanks! it works! Strange though that the untouched scaffolding app seems 
to work for some people and for others not.
Best,
Stephan

Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip:
>
> Hi Stephan,
>
> I tried the brutal approach. I changed the delimiters for web2py on the 
> model and changed all of the views accordingly. I left the delimiters for 
> vuejs as default ('{{' '}}')
>
> regards,
>
> John
>
> On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>>
>> Hello John,
>> Would you mind sharing your solution? 
>> Thx,
>> Stephan
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-31 Thread 'John Philip' via web2py-users
Hi Stephan,

I tried the brutal approach. I changed the delimiters for web2py on the 
model and changed all of the views accordingly. I left the delimiters for 
vuejs as default ('{{' '}}')

regards,

John

On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>
> Hello John,
> Would you mind sharing your solution? 
> Thx,
> Stephan

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-30 Thread St. Pirsch
Hello John,
Would you mind sharing your solution? 
Thx,
Stephan

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-30 Thread 'John Philip' via web2py-users
Sorry Anthony for confusing you. I tried the scaffolding app but for some 
reason I never got the delimiter to be recognised. So I tried using the 
vuejs code from the introduction. However I managed to get it working now.

thanks again.

John

On Sunday, January 29, 2017 at 11:55:54 PM UTC+1, Anthony wrote:
>
> On Saturday, January 28, 2017 at 2:50:57 PM UTC-5, John Philip wrote:
>>
>> Hi there,
>>
>> I'm a bit lost at the moment. I tried all of the suggestions but it 
>> doesn't seem to work. Does anybody have a simple web2py example using vuejs 
>> that I can try? 
>>
>
> It's not quite clear what your problem is, as you mentioned starting with 
> that  scaffolding app, but then showed some other code that looks unrelated.
>
> Anyway, as web2py primarily deals with the server side of things and Vue 
> is a client-side library, there isn't much to working with them together -- 
> just make sure in any web2py views that contain Vue markup that you are 
> using different delimiters for each (i.e., change either the web2py or Vue 
> default delimiters).
>
> If you're having problems, in the browser, use "view source" to check the 
> final HTML that got sent to the browser -- if it doesn't look right, then 
> the problem must be in your web2py view code. Otherwise, the problem is 
> probably with your Vue code, and you should ask in the Vue help forum.
>
> Anthony
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-29 Thread Anthony
On Saturday, January 28, 2017 at 2:50:57 PM UTC-5, John Philip wrote:
>
> Hi there,
>
> I'm a bit lost at the moment. I tried all of the suggestions but it 
> doesn't seem to work. Does anybody have a simple web2py example using vuejs 
> that I can try? 
>

It's not quite clear what your problem is, as you mentioned starting with 
that  scaffolding app, but then showed some other code that looks unrelated.

Anyway, as web2py primarily deals with the server side of things and Vue is 
a client-side library, there isn't much to working with them together -- 
just make sure in any web2py views that contain Vue markup that you are 
using different delimiters for each (i.e., change either the web2py or Vue 
default delimiters).

If you're having problems, in the browser, use "view source" to check the 
final HTML that got sent to the browser -- if it doesn't look right, then 
the problem must be in your web2py view code. Otherwise, the problem is 
probably with your Vue code, and you should ask in the Vue help forum.

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-28 Thread 'John Philip' via web2py-users
Hi there,

I'm a bit lost at the moment. I tried all of the suggestions but it doesn't 
seem to work. Does anybody have a simple web2py example using vuejs that I 
can try? 

many thanks and regards,

John

On Friday, January 27, 2017 at 10:01:56 PM UTC+1, St. Pirsch wrote:
>
> It seems, the problem is that the server doesn't send anything back when 
> you're doing a query, f.i. search?q=Game
>
>  
> Am Freitag, 27. Januar 2017 20:35:28 UTC+1 schrieb Val K:
>>
>> Vue  delimiters are configurable  too!
>> @scaffold /static 
>> /js 
>> /main-vue.js: 
>> row#23 Vue.config.delimiters = ['${', '}'] - it's global default config
>>
>> so, you shouldn't change web2py delimiters, just try ${message} instead 
>> {{message}}
>>
>>
>> On Friday, January 27, 2017 at 6:07:56 PM UTC+3, John Philip wrote:
>>>
>>> Hi Richard,
>>>
>>> no luck. I modified the view:
>>>
>>> response.delimiters = ('{[', ']}')
>>> 
>>>   {{message}}
>>> 
>>>
>>> This is the default/vgrid.html template
>>> {[=BEAUTIFY(response._vars)]}
>>> https://unpkg.com/vue/dist/vue.js";>
>>>
>>> I also returned empty var in the controller as you suggested but when 
>>> loading the view I still get {{message}}. I have no idea why? ;(
>>>
>>> thanks again,
>>>
>>> John
>>>
>>>
>>>
>>> On Friday, January 27, 2017 at 3:20:38 PM UTC+1, Richard wrote:

 Ok, first try to leave layout.html out of the way... remove the first 
 line... It should work so far, but consider you always better put the js 
 at 
 the bottom of the page for faster page load and improve parsing as the js 
 come later (after the dom) anyway...

 Do you have a controllers function for the view you try to serve? If 
 yes do you return an empty vars :

 def view():
 response.delimiters = ('{[', ']}')
 return dict(empty_vars='')

 It makes sure web2py serve something.

 Try to set response.delimiters in you view at first too...

 Good luck

 Richard


 On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
 web...@googlegroups.com> wrote:

> 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']}
> https://unpkg.com/vue/dist/vue.js";>
>
> 
> new Vue({
>   el: '#app',
>   data: {
> message: 'Hello Vue.js!'
>   }
> })
>
> 
>   {{message}}
> 
>
> This is the default/vgrid.html template
> {[=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 <
>> web...@googlegroups.com> 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 web2py+un...@googlegroups.com.
>>> 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

Re: [web2py] Re: vue.js

2017-01-27 Thread St. Pirsch
It seems, the problem is that the server doesn't send anything back when 
you're doing a query, f.i. search?q=Game

 
Am Freitag, 27. Januar 2017 20:35:28 UTC+1 schrieb Val K:
>
> Vue  delimiters are configurable  too!
> @scaffold /static 
> /js 
> /main-vue.js: 
> row#23 Vue.config.delimiters = ['${', '}'] - it's global default config
>
> so, you shouldn't change web2py delimiters, just try ${message} instead 
> {{message}}
>
>
> On Friday, January 27, 2017 at 6:07:56 PM UTC+3, John Philip wrote:
>>
>> Hi Richard,
>>
>> no luck. I modified the view:
>>
>> response.delimiters = ('{[', ']}')
>> 
>>   {{message}}
>> 
>>
>> This is the default/vgrid.html template
>> {[=BEAUTIFY(response._vars)]}
>> https://unpkg.com/vue/dist/vue.js";>
>>
>> I also returned empty var in the controller as you suggested but when 
>> loading the view I still get {{message}}. I have no idea why? ;(
>>
>> thanks again,
>>
>> John
>>
>>
>>
>> On Friday, January 27, 2017 at 3:20:38 PM UTC+1, Richard wrote:
>>>
>>> Ok, first try to leave layout.html out of the way... remove the first 
>>> line... It should work so far, but consider you always better put the js at 
>>> the bottom of the page for faster page load and improve parsing as the js 
>>> come later (after the dom) anyway...
>>>
>>> Do you have a controllers function for the view you try to serve? If yes 
>>> do you return an empty vars :
>>>
>>> def view():
>>> response.delimiters = ('{[', ']}')
>>> return dict(empty_vars='')
>>>
>>> It makes sure web2py serve something.
>>>
>>> Try to set response.delimiters in you view at first too...
>>>
>>> Good luck
>>>
>>> Richard
>>>
>>>
>>> On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
>>> web...@googlegroups.com> wrote:
>>>
 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']}
 https://unpkg.com/vue/dist/vue.js";>

 
 new Vue({
   el: '#app',
   data: {
 message: 'Hello Vue.js!'
   }
 })

 
   {{message}}
 

 This is the default/vgrid.html template
 {[=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 <
> web...@googlegroups.com> 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 web2py+un...@googlegroups.com.
>> 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 web2py+un...@googlegroups.com.
 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 Gro

Re: [web2py] Re: vue.js

2017-01-27 Thread Val K
Vue  delimiters are configurable  too!
@scaffold /static 
/js 
/main-vue.js: 
row#23 Vue.config.delimiters = ['${', '}'] - it's global default config

so, you shouldn't change web2py delimiters, just try ${message} instead 
{{message}}


On Friday, January 27, 2017 at 6:07:56 PM UTC+3, John Philip wrote:
>
> Hi Richard,
>
> no luck. I modified the view:
>
> response.delimiters = ('{[', ']}')
> 
>   {{message}}
> 
>
> This is the default/vgrid.html template
> {[=BEAUTIFY(response._vars)]}
> https://unpkg.com/vue/dist/vue.js";>
>
> I also returned empty var in the controller as you suggested but when 
> loading the view I still get {{message}}. I have no idea why? ;(
>
> thanks again,
>
> John
>
>
>
> On Friday, January 27, 2017 at 3:20:38 PM UTC+1, Richard wrote:
>>
>> Ok, first try to leave layout.html out of the way... remove the first 
>> line... It should work so far, but consider you always better put the js at 
>> the bottom of the page for faster page load and improve parsing as the js 
>> come later (after the dom) anyway...
>>
>> Do you have a controllers function for the view you try to serve? If yes 
>> do you return an empty vars :
>>
>> def view():
>> response.delimiters = ('{[', ']}')
>> return dict(empty_vars='')
>>
>> It makes sure web2py serve something.
>>
>> Try to set response.delimiters in you view at first too...
>>
>> Good luck
>>
>> Richard
>>
>>
>> On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
>> web...@googlegroups.com> wrote:
>>
>>> 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']}
>>> https://unpkg.com/vue/dist/vue.js";>
>>>
>>> 
>>> new Vue({
>>>   el: '#app',
>>>   data: {
>>> message: 'Hello Vue.js!'
>>>   }
>>> })
>>>
>>> 
>>>   {{message}}
>>> 
>>>
>>> This is the default/vgrid.html template
>>> {[=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 <
 web...@googlegroups.com> 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 web2py+un...@googlegroups.com.
> 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 web2py+un...@googlegroups.com.
>>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-27 Thread 'John Philip' via web2py-users
Hi Richard,

no luck. I modified the view:

response.delimiters = ('{[', ']}')

  {{message}}


This is the default/vgrid.html template
{[=BEAUTIFY(response._vars)]}
https://unpkg.com/vue/dist/vue.js";>

I also returned empty var in the controller as you suggested but when 
loading the view I still get {{message}}. I have no idea why? ;(

thanks again,

John



On Friday, January 27, 2017 at 3:20:38 PM UTC+1, Richard wrote:
>
> Ok, first try to leave layout.html out of the way... remove the first 
> line... It should work so far, but consider you always better put the js at 
> the bottom of the page for faster page load and improve parsing as the js 
> come later (after the dom) anyway...
>
> Do you have a controllers function for the view you try to serve? If yes 
> do you return an empty vars :
>
> def view():
> response.delimiters = ('{[', ']}')
> return dict(empty_vars='')
>
> It makes sure web2py serve something.
>
> Try to set response.delimiters in you view at first too...
>
> Good luck
>
> Richard
>
>
> On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
> web...@googlegroups.com > wrote:
>
>> 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']}
>> https://unpkg.com/vue/dist/vue.js";>
>>
>> 
>> new Vue({
>>   el: '#app',
>>   data: {
>> message: 'Hello Vue.js!'
>>   }
>> })
>>
>> 
>>   {{message}}
>> 
>>
>> This is the default/vgrid.html template
>> {[=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 <
>>> web...@googlegroups.com> 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 web2py+un...@googlegroups.com.
 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 web2py+un...@googlegroups.com .
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-27 Thread Richard Vézina
Ok, first try to leave layout.html out of the way... remove the first
line... It should work so far, but consider you always better put the js at
the bottom of the page for faster page load and improve parsing as the js
come later (after the dom) anyway...

Do you have a controllers function for the view you try to serve? If yes do
you return an empty vars :

def view():
response.delimiters = ('{[', ']}')
return dict(empty_vars='')

It makes sure web2py serve something.

Try to set response.delimiters in you view at first too...

Good luck

Richard


On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
web2py@googlegroups.com> wrote:

> 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']}
> https://unpkg.com/vue/dist/vue.js";>
>
> 
> new Vue({
>   el: '#app',
>   data: {
> message: 'Hello Vue.js!'
>   }
> })
>
> 
>   {{message}}
> 
>
> This is the default/vgrid.html template
> {[=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 <
>> web...@googlegroups.com> 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 web2py+un...@googlegroups.com.
>>> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-27 Thread 'John Philip' via web2py-users
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']}
https://unpkg.com/vue/dist/vue.js";>


new Vue({
  el: '#app',
  data: {
message: 'Hello Vue.js!'
  }
})


  {{message}}


This is the default/vgrid.html template
{[=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 <
> web...@googlegroups.com > 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 web2py+un...@googlegroups.com .
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2017-01-26 Thread Richard Vézina
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 <
web2py@googlegroups.com> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2017-01-26 Thread 'John Philip' via web2py-users
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i miss the time of only server-side  :-(

2016-10-12 13:21 GMT-04:00 Anthony :
>>
>> In react you simple do:
>>
>> 
>
>
> You don't simply do that in React. The above assumes you have created a
> React component that takes "url" and "pollinterval" props and then after
> being mounted starts making periodic Ajax requests and updates the state
> after each fetch. Of course, you can do the same thing in Vue -- just make a
> component that takes those same two props and set up the Ajax polling inside
> the "mounted" lifecycle hook (and update a "comments" data property on each
> fetch, which will trigger a re-render). It might look something like:
>
> 
>
> Anthony
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-12 Thread Anthony

>
>
> In react you simple do: 
>
>  
>

You don't *simply* do that in React. The above assumes you have created a 
React component that takes "url" and "pollinterval" props and then after 
being mounted starts making periodic Ajax requests and updates the state 
after each fetch. Of course, you can do the same thing in Vue -- just make 
a component that takes those same two props and set up the Ajax polling 
inside the "mounted" lifecycle hook (and update a "comments" data property 
on each fetch, which will trigger a re-render). It might look something 
like:



Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i don't  get it... i have been reading vue.js docs and a lot of
examples and don't see the way of it... suppose, for example, i want
to use the comment plugin example with vue, so that i can LOAD the
plugin into the web2py getting a form for post comment's and a list of
comment... how to keep loading new comment from the database without
reloading the page ?

In react you simple do:



what is the way in Vue, i don't want use react.


2016-10-12 3:26 GMT-04:00 icodk :
> I tried the scaffolding example. it is missing the appconfig.ini (used my
> own) and nothing (visibly) happen when entering good as the place holder
> suggests.
> Is it working as expected?
>
>
>
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-10-12 Thread icodk
I tried the scaffolding example. it is missing the appconfig.ini (used my 
own) and nothing (visibly) happen when entering good as the place holder 
suggests.
Is it working as expected?


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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
I had to manage frontend store and sync it with backend.
For using web2py just as a data repo i prefer couchdb with pouchdb and this
way i only have one app.
However i´m not at the same level as Massimo so i´m curious to know that he
is liking vuejs and waiting for some good examples with web2py.
Regards

2016-10-04 12:33 GMT+01:00 António Ramos :

> as i said i had 2 apps instead of one.
>
> 2016-10-04 12:22 GMT+01:00 Marlysson Silva :
>
>> Why? Was dificult?
>>
>> Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu:
>>>
>>> Vue is good ,but Vue with centralized state management,Vuex, is even
>>> better.
>>> But then with Vuex i ended up with 2 apps. web2py for the server merely
>>> as a REST API and vuex for the frontend.
>>> I dont like this road :(
>>>
>>>
>>> 2016-10-03 22:24 GMT+01:00 pbreit :
>>>
 Massimo has already provided us with an immense treasure but I've
 always been curious what a Massimo-designed JavaScript framework would look
 like!

 --
 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 web2py+un...@googlegroups.com.
 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 web2py+unsubscr...@googlegroups.com.
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
as i said i had 2 apps instead of one.

2016-10-04 12:22 GMT+01:00 Marlysson Silva :

> Why? Was dificult?
>
> Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu:
>>
>> Vue is good ,but Vue with centralized state management,Vuex, is even
>> better.
>> But then with Vuex i ended up with 2 apps. web2py for the server merely
>> as a REST API and vuex for the frontend.
>> I dont like this road :(
>>
>>
>> 2016-10-03 22:24 GMT+01:00 pbreit :
>>
>>> Massimo has already provided us with an immense treasure but I've always
>>> been curious what a Massimo-designed JavaScript framework would look like!
>>>
>>> --
>>> 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 web2py+un...@googlegroups.com.
>>> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-04 Thread Marlysson Silva
Why? Was dificult?

Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu:
>
> Vue is good ,but Vue with centralized state management,Vuex, is even 
> better. 
> But then with Vuex i ended up with 2 apps. web2py for the server merely as 
> a REST API and vuex for the frontend.
> I dont like this road :(
>
>
> 2016-10-03 22:24 GMT+01:00 pbreit >:
>
>> Massimo has already provided us with an immense treasure but I've always 
>> been curious what a Massimo-designed JavaScript framework would look like!
>>
>> -- 
>> 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 web2py+un...@googlegroups.com .
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
Vue is good ,but Vue with centralized state management,Vuex, is even
better.
But then with Vuex i ended up with 2 apps. web2py for the server merely as
a REST API and vuex for the frontend.
I dont like this road :(


2016-10-03 22:24 GMT+01:00 pbreit :

> Massimo has already provided us with an immense treasure but I've always
> been curious what a Massimo-designed JavaScript framework would look like!
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-10-03 Thread pbreit
Massimo has already provided us with an immense treasure but I've always 
been curious what a Massimo-designed JavaScript framework would look like!

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-10-03 Thread JorgeH
Ok. Massimo. Can we assume that you are asking about vue.js because you 
want it to be the default frontend library for web2py? If so.. good choice 
! :). 

Why not including it in the next release and wait and see what comes..


On Monday, October 3, 2016 at 2:34:33 PM UTC-5, Massimo Di Pierro wrote:
>
> I have not tried riot.js and elm.js. I cannot stand the syntax of 
> react.js. I like ractive.js and vue.js. The latter is faster, smaller, and 
> has less gotchas. I have been using to build a some single apps with 
> cordova for client and web2py+dal as server and it works pretty well. the 
> cordova apps are pretty responsive and as far as I can tell compete with 
> native apps.
>
> On Monday, 26 September 2016 08:50:19 UTC-5, JorgeH wrote:
>>
>> I like Riot.js 
>>
>>
>> http://riotjs.com/
>>
>> Give it a try!
>>
>> On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-10-03 Thread Massimo Di Pierro
I have not tried riot.js and elm.js. I cannot stand the syntax of react.js. 
I like ractive.js and vue.js. The latter is faster, smaller, and has less 
gotchas. I have been using to build a some single apps with cordova for 
client and web2py+dal as server and it works pretty well. the cordova apps 
are pretty responsive and as far as I can tell compete with native apps.

On Monday, 26 September 2016 08:50:19 UTC-5, JorgeH wrote:
>
> I like Riot.js 
>
>
> http://riotjs.com/
>
> Give it a try!
>
> On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-09-26 Thread JorgeH
I like Riot.js 


http://riotjs.com/

Give it a try!

On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-09-26 Thread Michele Comitini
Of course I like vue.js too.  I use ractive.js also: they are very similar
in many aspects.

2016-09-26 12:37 GMT+02:00 Marlysson Silva :

> I intend to delve me in the Vuejs , it's an awesome library
>
> Facilitates futher development
>
> Em domingo, 25 de setembro de 2016 00:25:51 UTC-3, Massimo Di Pierro
> escreveu:
>>
>> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-09-26 Thread Marlysson Silva
I intend to delve me in the Vuejs , it's an awesome library

Facilitates futher development

Em domingo, 25 de setembro de 2016 00:25:51 UTC-3, Massimo Di Pierro 
escreveu:
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-09-25 Thread Anthony
Vue.js looks great. Another interesting option to consider is React+Mobx 
.

On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-09-25 Thread Anthony
And on the web2py side, you can set response.delimiters: 
http://web2py.com/books/default/chapter/29/05/the-views#The-views

Anthony

On Sunday, September 25, 2016 at 10:33:25 AM UTC-4, Ramos wrote:
>
> http://vuejs.org/api/#delimiters
> beware of vuejs 2.0
>
> 2016-09-25 15:28 GMT+01:00 António Ramos :
>
>> from vue side
>> https://github.com/vuejs/vue/issues/252
>>
>> 2016-09-25 14:06 GMT+01:00 Jarrod Wilcox :
>>
>>> Massimo
>>>
>>> Can you remind us as to best way to avoid conflict between both web2py 
>>> and vue using double curly brackets?
>>>
>>> Jarrod
>>>
>>>
>>> On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, 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 web2py+unsubscr...@googlegroups.com.
>>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-09-25 Thread António Ramos
http://vuejs.org/api/#delimiters
beware of vuejs 2.0

2016-09-25 15:28 GMT+01:00 António Ramos :

> from vue side
> https://github.com/vuejs/vue/issues/252
>
> 2016-09-25 14:06 GMT+01:00 Jarrod Wilcox :
>
>> Massimo
>>
>> Can you remind us as to best way to avoid conflict between both web2py
>> and vue using double curly brackets?
>>
>> Jarrod
>>
>>
>> On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, 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 web2py+unsubscr...@googlegroups.com.
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: vue.js

2016-09-25 Thread António Ramos
from vue side
https://github.com/vuejs/vue/issues/252

2016-09-25 14:06 GMT+01:00 Jarrod Wilcox :

> Massimo
>
> Can you remind us as to best way to avoid conflict between both web2py and
> vue using double curly brackets?
>
> Jarrod
>
>
> On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: vue.js

2016-09-25 Thread Jarrod Wilcox
Massimo

Can you remind us as to best way to avoid conflict between both web2py and 
vue using double curly brackets?

Jarrod

On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.