Permalink
Browse files

Add our new trick to the README

  • Loading branch information...
1 parent d76ad94 commit b9994ad70f2a350715cc6e1d18cf4abd8990d0ae @defunkt committed Aug 26, 2009
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.markdown
View
@@ -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
---------

0 comments on commit b9994ad

Please sign in to comment.