Hi everyone,

Quick update -- IE6 and IE7 are now supported on the OpenSocial Templates
proposal demo (http://ostemplates-demo.appspot.com)!

Shall I send a patch via JIRA? Any objections to this?

Thanks.
David

On Thu, Jul 10, 2008 at 2:22 AM, David Mark Byttow <[EMAIL PROTECTED]>
wrote:

> Thanks Chris!
>
> Any chance you (or anyone else) have been able to take a detailed look? I'm
> looking into the IE issues, but I'd also love to hear everyone's feedback.
>
> David
>
>
> On Fri, Jul 4, 2008 at 12:09 PM, Chris Chabot <[EMAIL PROTECTED]> wrote:
>
>> I'll have more detailed feedback early next week, but for now i'll stick
>> to: That's really impressive work!
>>
>>        -- Chris
>>
>> On Jul 4, 2008, at 8:56 PM, David Mark Byttow wrote:
>>
>>  Hi all,
>>>
>>> Here is a link to our most recent progress:
>>> http://ostemplates-demo.appspot.com. Currently, both Firefox and Safari
>>> are
>>> supported, not IE.
>>>
>>> This site contains the following:
>>>
>>>  - Demonstration of templates throughout the site. In fact, the content
>>> is
>>>  served via templating.
>>>  - Sample OpenSocial reusable tags as mentioned in the OpenSocial
>>>  Templates spec
>>> proposal<
>>> http://groups.google.com/group/opensocial-and-gadgets-spec/web/opensocial-templates
>>> >
>>>  .
>>>  - Sample "friends list" gadget which can be deployed in any OpenSocial
>>>
>>>  container.
>>>  - Examples of using "template libraries".
>>>  - Source code, including a single, minimized JavaScript file for use.
>>>
>>> In addition to the source, please take a look at the HTML source as well.
>>>
>>> Currently the source code is broken into 8 files.
>>>
>>>  - *base.js* - Contains public API methods and anything else core and
>>> used
>>>  throughout the library.
>>>  - *compiler.js* - Parsing/compiling system. Functionality for parsing
>>> XML
>>>  templates down to jstemplate structure and compiling the result.
>>>  - *container.js* - Provides methods that bootstrap and hide the details
>>>  of templates through a simpler interface with methods such as
>>>  "processDocument", which compiles and registers all templates in the
>>> current
>>>  document.
>>>  - *loader.js* - Implements the "template library" functionality with
>>> XHR.
>>>  - namespaces.js - Implements support for tag namespaces.
>>>  - *os.js* - Provides the functionality to map properties onto OpenSocial
>>>  object methods.
>>>  - *template.js* - Implements the Template class and caching/registration
>>>  mechanism.
>>>  - *util.js* - Small utility methods used throughout the code.
>>>
>>> The readable source does not include jstemplate, the underlying library
>>> we
>>> used, though the full source code and more information can be found here:
>>> http://code.google.com/p/google-jstemplate/.
>>>
>>> We are hoping to get feedback on the approach, so please respond with
>>> your
>>> questions and comments.
>>>
>>> Thanks.
>>> David
>>>
>>> On Wed, Jul 2, 2008 at 5:57 PM, David Mark Byttow <
>>> [EMAIL PROTECTED]>
>>> wrote:
>>>
>>>  Hey guys,
>>>>
>>>> Thanks for the responses. I'm currently putting together a demo with
>>>> source
>>>> and will be sending out a link.
>>>>
>>>> David
>>>>
>>>>
>>>> On Tue, Jul 1, 2008 at 1:58 PM, Kevin Brown <[EMAIL PROTECTED]> wrote:
>>>>
>>>>  On Tue, Jul 1, 2008 at 12:42 PM, David Mark Byttow <
>>>>> [EMAIL PROTECTED]>
>>>>> wrote:
>>>>>
>>>>>  Hi,
>>>>>>
>>>>>> My colleague, Lev Epshteyn, and I have been following the spec
>>>>>>
>>>>> discussions
>>>>>
>>>>>> on the OpenSocial Templates proposal (
>>>>>>
>>>>>>
>>>>>>
>>>>> http://groups.google.com/group/opensocial-and-gadgets-spec/web/opensocial-templates
>>>>>
>>>>>> ).
>>>>>> We think it's great how this is coming together and we have discussed
>>>>>>
>>>>> some
>>>>>
>>>>>> ideas for implementing the spec on the client-side. In fact, we have
>>>>>>
>>>>> also
>>>>>
>>>>>> made some good headway in coding up a prototype around one of them.
>>>>>> We'd
>>>>>> like to get broader input from shindig-dev and discuss next steps.
>>>>>>
>>>>>> At the core of our design is an open source technology called
>>>>>> JSTemplate
>>>>>>
>>>>> (
>>>>>
>>>>>> http://code.google.com/p/google-jstemplate/). This technology has
>>>>>> been
>>>>>> used
>>>>>> for a few years in various parts of Google Maps, and is pretty mature.
>>>>>>
>>>>> It
>>>>>
>>>>>> has been released by Google under the Apache 2.0 license recently. To
>>>>>>
>>>>> sum
>>>>>
>>>>>> it
>>>>>> up, JSTemplate uses special attributes on the DOM nodes to process
>>>>>> instructions. For example:
>>>>>>
>>>>>> The following HTML:
>>>>>> <a jsvalues="href:url" jscontent="anchor"></a>
>>>>>>
>>>>>> Supplied the following JSON data:
>>>>>> { url: "http://foo.com";, anchor: "bar" }
>>>>>>
>>>>>> Becomes:
>>>>>>  <a href="http://foo.com";>Bar</a>
>>>>>>
>>>>>> One primary, but easily overlooked advantage of JSTemplate is that it
>>>>>>
>>>>> has
>>>>>
>>>>>> been heavily optimized for performing well in different browser
>>>>>> environments
>>>>>> and operates purely on the browser's DOM. Its disadvantage is that the
>>>>>> library syntax is much less accessible than the spec developed for
>>>>>> OpenSocial.
>>>>>>
>>>>>> Our idea has been to create a "compiler" which will transform
>>>>>> templates
>>>>>> written in OpenSocial format into DOM trees that can be used by
>>>>>>
>>>>> JSTemplate.
>>>>>
>>>>>> This way, once a template is "compiled", it can be rendered any number
>>>>>>
>>>>> of
>>>>>
>>>>>> times by the mature rendering core of JSTemplate.
>>>>>>
>>>>>> A simple example of such compilation would transform:
>>>>>> <a href="${url}">${anchor}</a>
>>>>>> Into the DOM snippet shown above when supplied with the same JSON
>>>>>> data.
>>>>>>
>>>>>> Our initial prototype has shown this to be a fairly straightforward
>>>>>> process,
>>>>>> and we look forward to getting your thoughts and proposing some
>>>>>> patches
>>>>>>
>>>>> to
>>>>>
>>>>>> shindig.
>>>>>>
>>>>>> Any thoughts?
>>>>>>
>>>>>
>>>>>
>>>>> Yes, send us the prototype :)
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks.
>>>>>> David Byttow
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>
>

Reply via email to