Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function ( grunt ) {

getEditLink: function ( file ) {
var source = grunt.editLinkReverseMapping[ file ];
return 'https://github.com/ractivejs/docs.ractivejs.org/edit/master/docs/' + source;
return 'https://github.com/ractivejs/v0.x/edit/master/docs/' + source;
}
};

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
docs.ractivejs.org
v0.x
==================

The documentation for [Ractive.js](http://ractivejs.org).
The documentation for [Ractive.js](http://ractive.js.org).


Building
--------

```
# clone the repo
$ git clone https://github.com/RactiveJS/docs.ractivejs.org.git
$ cd docs.ractivejs.org
$ git clone https://github.com/RactiveJS/v0.x.git
$ cd v0.x

# install dev dependencies (grunt and friends)
$ npm install
Expand All @@ -29,7 +29,7 @@ Open `localhost` on the port specified (usually `8080`), and it should redirect
Contributing
------------

If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/RactiveJS/docs.ractivejs.org/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!
If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/RactiveJS/v0.x/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!

In lieu of formal contribution guidelines, take care to follow the existing structure and conventions. Send pull requests to the `master` branch, not `gh-pages` (which is a snapshot of the `build` folder in `master`).

Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/60-second setup.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ That's it - you're in business.

* You could pass in a template string as the `template` option, rather than the ID of a script tag containing the template. In that case, if your template is more than a couple of lines you'll probably want to keep it in a separate file and load it (e.g. with `$.ajax`, if you're using jQuery)
* As your app grows in complexity, you'll want to keep your application code (i.e. the bit that calls `new Ractive()`) in a separate file. You can also [use Ractive with RequireJS](using-ractive-with-requirejs).
* Work your way through the [tutorials](http://learn.ractivejs.org) to learn how to use Ractive. You can also consult the {{{createLink 'API reference'}}}.
* Work your way through the [tutorials](http://learn.ractive.js.org) to learn how to use Ractive. You can also consult the {{{createLink 'API reference'}}}.
2 changes: 1 addition & 1 deletion docs/0.3.9/Adaptors.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Adaptors

Adaptors are a way of teaching Ractive to communicate seamlessly with other libraries such as Backbone. This means that you can, for example, have some or all of your app's data handled by Backbone - including fetching from and saving to your server, validation, sorting, filtering and so on - but still build a reactive user interface using Ractive, without having to create custom View classes or adding a whole load of event binding code.

It's probably easier to show, rather than tell: [this example application](http://ractivejs.org/examples/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/RactiveJS/plugins.adaptors.Backbone).
It's probably easier to show, rather than tell: [this example application](http://ractive.js.org/examples/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/RactiveJS/plugins.adaptors.Backbone).


Using adaptors
Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Contributing.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pull requests are always welcome on [GitHub](https://github.com/ractivejs/ractiv
## Other ways to contribute

* Spread the word! The larger the community using Ractive, the better it becomes. Write blog posts, mention it to your developer colleagues and friends, submit talks (here are some [tips on speaking at tech meetups](http://speaking.io/)).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/docs.ractivejs.org/issues).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/v0.x/issues).
* Help other developers on StackOverflow. Subscribe to [questions tagged 'ractivejs'](http://stackoverflow.com/questions/tagged/ractivejs), and you'll get alerts when someone asks a question that you might be able to answer.
* Write plugins. See the {{{createLink 'Create plugins'}}} page for more information.

Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Decorators.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var tooltipDecorator = function ( node, content ) {

// Create some event handlers. NB we can use addEventListener
// with impunity, even in old IE, by using a legacy build:
// https://docs.ractivejs.org/latest/Legacy-builds
// https://ractive.js.org/support
handlers = {
mouseover: function () {
// Create a tooltip...
Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Find plugins.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Plugins allow you to augment Ractive with extra functionality. You can create yo

## {{{createLink 'Adaptors'}}}

* [Backbone](http://ractivejs.org/examples/backbone)
* [Backbone](http://ractive.js.org/examples/backbone)
* [Promises](http://lluchs.github.io/Ractive-adaptors-Promise/) - contributed by [@lluchs](https://github.com/lluchs)
* TODO Ractive (synchronise several Ractive instances)
* TODO Object.observe
Expand Down
4 changes: 2 additions & 2 deletions docs/0.3.9/Get started.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Get started

Welcome! These pages aim to provide all the information you need to master Ractive.

If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/docs.ractivejs.org/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!
If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/v0.x/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!

A good way to get up and running is with the [60 second setup](http://ractivejs.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractivejs.org) will familiarise you with the various ways you can use Ractive.
A good way to get up and running is with the [60 second setup](http://ractive.js.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractive.js.org) will familiarise you with the various ways you can use Ractive.

If you get stuck at any point, visit the {{{createLink 'Get support'}}} page to find help.
2 changes: 1 addition & 1 deletion docs/0.3.9/Initialisation options.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ractive = new Ractive({
> ### **template** *`String` or (if {{{createLink 'preparsing'}}}) `Array` or `Object`*
> The template to use. If this is a string, it must be valid (if meaningless, until rendered) HTML, otherwise this must be the output of {{{createLink 'Ractive.parse()'}}}.
>
> Alternatively, you can pass a string like `#myTemplate` - in this case, Ractive will use the contents of an element whose ID is `myTemplate`. See the [60 second setup](http://ractivejs.org/60-second-setup) for an example of this.
> Alternatively, you can pass a string like `#myTemplate` - in this case, Ractive will use the contents of an element whose ID is `myTemplate`. See the [60 second setup](http://ractive.js.org/60-second-setup) for an example of this.


## Optional
Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Mustaches.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We say that the `\{{name}}` mustache has a *[reference](references)* of `name`.

As soon as the mustache knows what its keypath is (which may not be at render time, if data has not yet been set), it registers itself as a *{{{createLink 'dependants' 'depedant'}}}* of the keypath. Then, whenever data changes, Ractive scans the dependency graph to see which mustaches need to update, and notifies them accordingly.

As well as simple *interpolators* like `\{{name}}`, the other mustaches types - sections, partials, and even delimiter changes - are supported. Consult the [tutorials](http://learn.ractivejs.org) to learn about these.
As well as simple *interpolators* like `\{{name}}`, the other mustaches types - sections, partials, and even delimiter changes - are supported. Consult the [tutorials](http://learn.ractive.js.org) to learn about these.


## Extensions
Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Plugins.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Plugins allow you to augment Ractive with extra functionality. You can create yo

## {{{createLink 'Adaptors'}}}

* [Backbone](http://ractivejs.org/examples/backbone)
* [Backbone](http://ractive.js.org/examples/backbone)
* [Promises](http://lluchs.github.io/Ractive-adaptors-Promise/) - contributed by [@lluchs](https://github.com/lluchs)
* TODO Ractive (synchronise several Ractive instances)
* TODO Object.observe
Expand Down
2 changes: 1 addition & 1 deletion docs/0.3.9/Using Ractive with Backbone.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Using Ractive with Backbone
---
If your app uses Backbone to manage your models and collections, you can use them seamlessly with Ractive by using an {{{createLink 'Ractive.adaptors' 'adaptor'}}}.

[Download the Backbone adaptor here](https://github.com/RactiveJS/Ractive/blob/master/plugins/adaptors/Backbone.js), or see an [example](http://ractivejs.org/examples/backbone/).
[Download the Backbone adaptor here](https://github.com/RactiveJS/Ractive/blob/master/plugins/adaptors/Backbone.js), or see an [example](http://ractive.js.org/examples/backbone/).
2 changes: 1 addition & 1 deletion docs/0.4.0/Adaptors.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Adaptors

Adaptors are a way of teaching Ractive to communicate seamlessly with other libraries such as Backbone. This means that you can, for example, have some or all of your app's data handled by Backbone - including fetching from and saving to your server, validation, sorting, filtering and so on - but still build a reactive user interface using Ractive, without having to create custom View classes or adding a whole load of event binding code.

It's probably easier to show, rather than tell: [this example application](http://examples.ractivejs.org/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/ractivejs/ractive-adaptors-backbone).
It's probably easier to show, rather than tell: [this example application](http://examples.ractive.js.org/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/ractivejs/ractive-adaptors-backbone).


Using adaptors
Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.0/Contributing.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pull requests are always welcome on [GitHub](https://github.com/ractivejs/ractiv
## Other ways to contribute

* Spread the word! The larger the community using Ractive, the better it becomes. Write blog posts, mention it to your developer colleagues and friends, submit talks (here are some [tips on speaking at tech meetups](http://speaking.io/)).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/docs.ractivejs.org/issues).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/v0.x/issues).
* Help other developers on StackOverflow. Subscribe to [questions tagged 'ractivejs'](http://stackoverflow.com/questions/tagged/ractivejs), and you'll get alerts when someone asks a question that you might be able to answer.
* Write plugins. See the {{{createLink 'Create plugins'}}} page for more information.

Expand Down
4 changes: 2 additions & 2 deletions docs/0.4.0/Get started.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Get started

Welcome! These pages aim to provide all the information you need to master Ractive.

If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/docs.ractivejs.org/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!
If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/v0.x/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!

A good way to get up and running is with the [60 second setup](http://ractivejs.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractivejs.org) will familiarise you with the various ways you can use Ractive.
A good way to get up and running is with the [60 second setup](http://ractive.js.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractive.js.org) will familiarise you with the various ways you can use Ractive.

If you get stuck at any point, visit the {{{createLink 'Get support'}}} page to find help.
2 changes: 1 addition & 1 deletion docs/0.4.0/Initialisation options.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ractive = new Ractive({
> ### **template** *`String` or (if {{{createLink 'preparsing'}}}) `Array` or `Object`*
> The template to use. If this is a string, it must be valid (if meaningless, until rendered) HTML, otherwise this must be the output of {{{createLink 'Ractive.parse()'}}}.
>
> Alternatively, you can pass a string like `#myTemplate` - in this case, Ractive will use the contents of an element whose ID is `myTemplate`. See the [60 second setup](http://ractivejs.org/60-second-setup) for an example of this.
> Alternatively, you can pass a string like `#myTemplate` - in this case, Ractive will use the contents of an element whose ID is `myTemplate`. See the [60 second setup](http://ractive.js.org/60-second-setup) for an example of this.


## Optional
Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.0/Mustaches.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We say that the `\{{name}}` mustache has a *[reference](references)* of `name`.

As soon as the mustache knows what its keypath is (which may not be at render time, if data has not yet been set), it registers itself as a *{{{createLink 'dependants' 'dependant'}}}* of the keypath. Then, whenever data changes, Ractive scans the dependency graph to see which mustaches need to update, and notifies them accordingly.

As well as simple *interpolators* like `\{{name}}`, the other mustaches types - sections, partials, and even delimiter changes - are supported. Consult the [tutorials](http://learn.ractivejs.org) to learn about these.
As well as simple *interpolators* like `\{{name}}`, the other mustaches types - sections, partials, and even delimiter changes - are supported. Consult the [tutorials](http://learn.ractive.js.org) to learn about these.


## Extensions
Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.0/Using Ractive with Backbone.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Using Ractive with Backbone
---
If your app uses Backbone to manage your models and collections, you can use them seamlessly with Ractive by using an {{{createLink 'Ractive.adaptors' 'adaptor'}}}.

[Download the Backbone adaptor here](https://github.com/RactiveJS/Ractive/blob/master/plugins/adaptors/Backbone.js), or see an [example](http://ractivejs.org/examples/backbone/).
[Download the Backbone adaptor here](https://github.com/RactiveJS/Ractive/blob/master/plugins/adaptors/Backbone.js), or see an [example](http://ractive.js.org/examples/backbone/).
2 changes: 1 addition & 1 deletion docs/0.4.0/Writing decorator plugins.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var tooltipDecorator = function ( node, content ) {

// Create some event handlers. NB we can use addEventListener
// with impunity, even in old IE, by using a legacy build:
// https://docs.ractivejs.org/latest/Legacy-builds
// https://ractive.js.org/support
handlers = {
mouseover: function () {
// Create a tooltip...
Expand Down
2 changes: 1 addition & 1 deletion docs/0.5/Adaptors.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Adaptors

Adaptors are a way of teaching Ractive to communicate seamlessly with other libraries such as Backbone. This means that you can, for example, have some or all of your app's data handled by Backbone - including fetching from and saving to your server, validation, sorting, filtering and so on - but still build a reactive user interface using Ractive, without having to create custom View classes or adding a whole load of event binding code.

It's probably easier to show, rather than tell: [this example application](http://examples.ractivejs.org/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/ractivejs/ractive-adaptors-backbone).
It's probably easier to show, rather than tell: [this example application](http://examples.ractive.js.org/backbone) uses Backbone models describing all the James Bond films. The [code for the Backbone adaptor is here](https://github.com/ractivejs/ractive-adaptors-backbone).


Using adaptors
Expand Down
2 changes: 1 addition & 1 deletion docs/0.5/Contributing.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pull requests are always welcome on [GitHub](https://github.com/ractivejs/ractiv
## Other ways to contribute

* Spread the word! The larger the community using Ractive, the better it becomes. Write blog posts, mention it to your developer colleagues and friends, submit talks (here are some [tips on speaking at tech meetups](http://speaking.io/)).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/docs.ractivejs.org/issues).
* Fix documentation. Each page on this site has an 'edit' button in the top right, which will take you to GitHub where you can submit fixes. If you spot an error or think something's missing and aren't sure how to fix it, [raise an issue](https://github.com/ractivejs/v0.x/issues).
* Help other developers on StackOverflow. Subscribe to [questions tagged 'ractivejs'](http://stackoverflow.com/questions/tagged/ractivejs), and you'll get alerts when someone asks a question that you might be able to answer.
* Write plugins. See the {{{createLink 'Create plugins'}}} page for more information.

Expand Down
4 changes: 2 additions & 2 deletions docs/0.5/Get started.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Get started

Welcome! These pages aim to provide all the information you need to master Ractive.

If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/docs.ractivejs.org/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!
If you see something wrong, out of date, or missing from this documentation, please [raise an issue on GitHub](https://github.com/ractivejs/v0.x/issues) or - even better - submit a pull request. Your fellow Ractive users will thank you!

Using Ractive is very simple. An instance is created using `new Ractive({...})`
with the desired options:
Expand All @@ -21,7 +21,7 @@ While there are no _required_ options, the three show above: __el__ement, __temp
are the most common. They specify __what data__ to bind to __what template__ and __where__ it should be placed
in the __html document__.

A good way to get up and running is with the [60 second setup](http://ractivejs.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractivejs.org) will familiarise you with the various ways you can use Ractive.
A good way to get up and running is with the [60 second setup](http://ractive.js.org/60-second-setup). After that, working your way through the [interactive tutorials](http://learn.ractive.js.org) will familiarise you with the various ways you can use Ractive.

Checkout the {{{createLink 'Options' 'Configuration Options'}}} to learn more about
all the available options.
Expand Down
2 changes: 1 addition & 1 deletion docs/0.5/Mustaches.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ As soon as the mustache knows what its keypath is (which may not be at render ti

If you already know Mustache, Ractive supports all the Mustache features - basic Mustache variables like `\{{name}}`, as well as sections, partials, and even delimiter changes. If you're already familiar with Mustache, skip to the Extensions section below.

You can also check out the [tutorials](http://learn.ractivejs.org).
You can also check out the [tutorials](http://learn.ractive.js.org).

### Variables

Expand Down
Loading