Permalink
Browse files

add example wintersmith site using the plugin

  • Loading branch information...
1 parent 2955dd7 commit c29747c0fde0e5e81bf35628487afaa15cc997a2 @jnordberg committed Mar 12, 2012
View
@@ -0,0 +1,4 @@
+{
+ "plugins": ["./../"],
+ "locals": {}
+}
@@ -0,0 +1,3 @@
+{
+ "template": "index.jade"
+}
@@ -0,0 +1,6 @@
+
+exports.messages = [
+ 'hello from bar.js',
+ 'client side require very powerful yes',
+ 'hoppa hoppa'
+];
@@ -0,0 +1,3 @@
+
+window.addEventListener('load', require('./test.coffee').main, false);
+
@@ -0,0 +1,7 @@
+
+bar = require './foo/bar.js'
+
+exports.main = ->
+ log = document.getElementById 'log'
+ for message, i in bar.messages
+ log.innerHTML += "#{ i } - #{ message }\n"
@@ -0,0 +1,8 @@
+!!! 5
+html(lang='en')
+ head
+ meta(charset='utf-8')
+ title winterjacker
+ script(src='js/main.js')
+ body
+ pre#log

0 comments on commit c29747c

Please sign in to comment.