Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Any more thoughts on a containerless text binding?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
simon.woodh...@gmail.com  
View profile  
 More options Apr 10 2012, 11:53 am
From: simon.woodh...@gmail.com
Date: Tue, 10 Apr 2012 08:53:42 -0700 (PDT)
Local: Tues, Apr 10 2012 11:53 am
Subject: Any more thoughts on a containerless text binding?

Hi,

I am converting a project from jsRender to Knockout to try the native
templating system. I am trying to dynamically generate some code that will
be displayed in a pre block.

This only seems possible by either:

1. Constructing a computed observable for the contents of the pre, or:
2. Creating a template full of spans.

I have demonstrated both options here: http://jsfiddle.net/afSLH/5/

The example I have presented is greatly simplified but even in that case I
think the spans look quite messy. I would like to use a containerless text
binding as mentioned in the comments here:
http://blog.stevensanderson.com/2011/08/31/knockout-1-3-0-beta-availa...

It seems that this is the only reason that you might want to use an
external templating library like jsRender, so I was wondering if anyone had
investigated the containerless text binding any further? If not what is the
best way of integrating jsRender and Knockout at the moment?

Really enjoyed trying out Knockout!

Simon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Best  
View profile  
 More options Apr 10 2012, 8:46 pm
From: Michael Best <mb...@dasya.com>
Date: Tue, 10 Apr 2012 17:46:24 -0700 (PDT)
Local: Tues, Apr 10 2012 8:46 pm
Subject: Re: Any more thoughts on a containerless text binding?
Check out my fork of Knockout that includes support for containerless
text binding:

https://github.com/mbest/knockout

On Apr 10, 5:53 am, simon.woodh...@gmail.com wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Woodhead  
View profile  
 More options Apr 11 2012, 12:04 pm
From: Simon Woodhead <simon.woodh...@gmail.com>
Date: Wed, 11 Apr 2012 09:04:08 -0700 (PDT)
Local: Wed, Apr 11 2012 12:04 pm
Subject: Re: Any more thoughts on a containerless text binding?

That is fantastic Michael, thank you. Are there plans to incorporate this
in a future release?

Simon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Best  
View profile  
 More options Apr 11 2012, 5:30 pm
From: Michael Best <mb...@dasya.com>
Date: Wed, 11 Apr 2012 14:30:37 -0700 (PDT)
Local: Wed, Apr 11 2012 5:30 pm
Subject: Re: Any more thoughts on a containerless text binding?
Yes. I'm not sure what the time frame will be.

On Apr 11, 6:04 am, Simon Woodhead <simon.woodh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »