Skip to content

Commit

Permalink
Update README in response to #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dogenpunk committed Jan 3, 2012
1 parent ee2024b commit 934a12d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -21,8 +21,12 @@ The gem ships with a Railtie which will automatically register a Closure preproc
// in one of your javascript files
goog.require('goog.dom');
newHeader = goog.dom.createDom('h1', {}, 'Hello world!');
goog.dom.appendChild(document.body, newHeader);
function sayHello() {
newHeader = goog.dom.createDom('h1', {}, 'Hello world!');
goog.dom.appendChild(document.body, newHeader);
};
window.onload = sayHello;
```

You can also add a `name.soy` template in your assets folder, and it will be automatically compiled to Javascript for you! Ex:
Expand Down

0 comments on commit 934a12d

Please sign in to comment.