Skip to content

Commit

Permalink
Add our new trick to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 26, 2009
1 parent d76ad94 commit b9994ad
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,27 @@ Oh, the DOM
=> "\n <h1 id=\"hi\">Hi.</h1>\n \n\n"


HTML with JavaScript
--------------------

$ cat examples/index.html | lyndon
<html><head>
<title>Lyndon Test!</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
$(function() {
$('#content').append('<div id="hi">Hello world!</div>')
})
</script>
</head><body>
<div id="content">
<div id="hi">Hello world!</div></div>
</body></html>

Note that the `<div id="hi">Hello world!</div></div>` does _not_ exist
in `examples/index.html` - it's added at runtime by JavaScript.


With Ruby
---------

Expand Down

0 comments on commit b9994ad

Please sign in to comment.