Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ractive.render() #107

Merged
merged 1 commit into from
Jul 15, 2014
Merged
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
7 changes: 6 additions & 1 deletion docs/0.5/ractive.render().md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
title: ractive.render()
---

This method will throw an error if you call it! It exists so that components can override the standard render logic with their own (e.g. for delegating to external libraries, or rendering to a canvas - note that this is not well supported as of version 0.4.0).
Renders the component into a DOM element.

> ### ractive.render( target )

> > #### **target** *`Node`* or *`String`* or *`jQuery`* (see {{{createLink 'Valid selectors'}}})
> > The DOM element to render to