Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add example wintersmith site using the plugin

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

0 comments on commit c29747c

Please sign in to comment.
Something went wrong with that request. Please try again.