Skip to content

Conversation

@evs-chris
Copy link
Contributor

I'm not really good at docs, but this is what I have so far on changes in edge. I think Ractive has evolved enough over the last year to warrant a rewrite of the docs, but until that becomes feasible in terms of time and body count, the current docs are decent enough.

I still have dreams of Ractive-based docs with searching and live embedded examples. One day... 😄


Spread arguments (`...arguments`) and `arguments` access is now available for method event handlers. Individual arguments are available using array notation (`arguments[n]`), dot notation (`arguments.0`), or `1`-based dollar vars, like regular expression matches (`$1`, `$2`, etc).

There is now support for linking data to extra keypaths in the model. This is particularly handy for master-detail scenarios where you have a complex lest of objects and you want to focus on a single one at a time. A keypath like `'foo.bar.bazzes.0'` can be linked to `'baz'` so that the detail section doesn't have to worry about a non-bindable expressions or copying objects around. Both sides of the link are automatically kept in sync. See {{{createLink 'ractive.link()'}}}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

complex lest of objects
should be
complex list of objects

@sabob
Copy link
Contributor

sabob commented Apr 2, 2016

@evs-chris docos looks good!

There is this PR to add syntax highlighting to code examples as well:
#242

@fskreuz fskreuz added the docs label Apr 3, 2016
@evs-chris evs-chris merged commit d8c15c1 into master Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants