Thanks,
Mat
(on phone so pls xcsuse spelligs)
> --
> You received this message because you are subscribed to the Google Groups "Persevere" group.
> To post to this group, send email to persevere...@googlegroups.com.
> To unsubscribe from this group, send email to persevere-frame...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/persevere-framework?hl=en.
>
you can use persevere as a backend to sproutcore, which is a client side Mvc framework that supports moustache templates (1.5 pre 4)
On Mar 9, 2011, at 6:58 AM, Sebastien <wsh...@gmail.com> wrote:
> In parallel to XRX, I thought it would be nice to have mustache.js
> stored inside of persevere to get HTML output straight from the REST
> interface. Any thoughts on this?
W.S. Hager
Lagua Web Solutions
http://lagua.nl
--
You received this message because you are subscribed to the Google Groups "Persevere" group.
To post to this group, send email to persevere...@googlegroups.com.
To unsubscribe from this group, send email to persevere-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/persevere-framework?hl=en.
Plus, in pintura, for "Accept: text/html" request an HTML serializer
is required which is (was, at least) not so easy configurable to use
various templating engines. Plus plus, pintura is positioned to be
"more a library than a framework", so the best imho to keep pintura
thin JSON server.
Best regards,
--Vladimir
With recent success of commonjs patterns server-side interface
generation is quickly becoming outdated, imho. Client-side generation
scales better, requires less data (in general) to be transmitted,
allows for offline apps and moremoremore.
Plus, in pintura, for "Accept: text/html" request an HTML serializer
is required which is (was, at least) not so easy configurable to use
various templating engines. Plus plus, pintura is positioned to be
"more a library than a framework", so the best imho to keep pintura
thin JSON server.
--
You received this message because you are subscribed to the Google Groups "Persevere" group.
To post to this group, send email to persevere...@googlegroups.com.
To unsubscribe from this group, send email to persevere-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/persevere-framework?hl=en.
In addition:
Accept:text/html to serialize would actually be what I'm looking for.
I have already put most of the weight in the browser, but I would very much like to see benchmarks of clientside vs serverside serialization.
I don't need any since I guarded the sentense with "imho".
> But that's no reason to completely forgo server side
> generation where it's necessary, and sometimes it's just easier or makes
> more sense to xhr for html.
Sure
>>
>> Plus, in pintura, for "Accept: text/html" request an HTML serializer
>> is required which is (was, at least) not so easy configurable to use
>> various templating engines. Plus plus, pintura is positioned to be
>> "more a library than a framework", so the best imho to keep pintura
>> thin JSON server.
>
>
> As more a library than a framework it's unopinionated about what templating
> engine you should use and how it should be configured. It's not all that
> complex to set one up, and configuring it to use any templating engine you
> want is the easy part -- in my experience the more complex part is handling
> various kinds of query results elegantly.
True. However, IIRC, one can't just render {foo: 'bar'} (arbitrary
object) by means of __provided pristine__ JSGI stack -- this foo
object must come from a Store instance, to make things consistent.
This was the topic of a hot discussion last summer, but i admit things
might have changed since. Agree, that such way of rendering is not
very friendly for those who is accustomed to be able to render
anything by simply call a routine.
Pure imho:
Pintura (Persevere 2.0) is brilliant at 2 points -- RQL and intrinsic
Object Capability -- and thus excellent choice for robustly serving
_data_. The remainder -- HTML rendering included -- is what other
"vanilla" pieces of software do may be better (at least easier to use
OOTB). These two points are what makes pintura a huge step forward
other frameworks which are mostly headless "renderers" and "routers",
no more.
--
You received this message because you are subscribed to the Google Groups "Persevere" group.
To post to this group, send email to persevere...@googlegroups.com.
To unsubscribe from this group, send email to persevere-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/persevere-framework?hl=en.
The point is _what_ to serialize. As Dean said, to couple
serialization stuff per se is easy.
Can you elaborate on what you want to get in response to what? Say, I
want to get a prefilled HTML form to edit an item in my Foo Store? Or,
I want to render the current user profile? As I said -- these two are
_very_ different...