Skip to content
Browse files

passing version and getting-started

  • Loading branch information...
1 parent 86ef05a commit 4e07563fe0abf99551bb6bcc982ff06b3d062fd3 @tmtk75 committed
Showing with 35 additions and 4 deletions.
  1. +2 −1 app.coffee
  2. +15 −3 views/index.jade
  3. +13 −0 views/static/examples/simple.html
  4. +5 −0 views/styles.styl
View
3 app.coffee
@@ -4,6 +4,7 @@ jade = require "jade"
assets = require "connect-assets"
stylus = require "stylus"
nib = require "nib"
+fs = require "fs"
require "jumly-jade"
require "jade-filters"
@@ -22,7 +23,7 @@ app.use stylus.middleware {
app.use express.static "#{__dirname}/views/static"
app.use assets src:"lib"
app.get "/", (req,res)->
- res.render "index"
+ res.render "index", VERSION:fs.readFileSync("lib/version").toString().trim()
port = process.env.PORT || 3000
app.listen port
View
18 views/index.jade
@@ -42,11 +42,23 @@ block content
| are needed.
:code(type=xml)
- !doctype html>
+ <!doctype html>
<head>
+ <link href='https://jumly.herokuapp.com/release/#{VERSION}/jumly.css' rel='stylesheet'/>
+ <script src='http://code.jquery.com/jquery-1.8.2.min.js'></script>
+ <script src='http://coffeescript.org/extras/coffee-script.js'></script>
+ <script src='https://jumly.herokuapp.com/release/#{VERSION}/jumly.js'></script>
</head>
- <sc
- @found "You", -> @message "Think"
+ &lt;body>
+ &lt;script type='text/jumly+sequence'>
+ @found "You", ->
+ @message "get", "JUMLY"
+ &lt;/script>
+ &lt;/body>
+
+ :jumly(type=sequence)
+ @found "You", ->
+ @message "get", "JUMLY"
#bg-why.row
.span4
View
13 views/static/examples/simple.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<head>
+ <link href='https://jumly.herokuapp.com/release/0.1.0/jumly.css' rel='stylesheet'/>
+ <script src='http://code.jquery.com/jquery-1.8.2.min.js'></script>
+ <script src='http://coffeescript.org/extras/coffee-script.js'></script>
+ <script src='https://jumly.herokuapp.com/release/0.1.0/jumly.js'></script>
+</head>
+<body>
+ <script type='text/jumly+sequence'>
+ @found "You", ->
+ @message "get", "JUMLY"
+ </script>
+</body>
View
5 views/styles.styl
@@ -47,8 +47,12 @@ body
margin-right 80px
#getting-started
+ margin-top 60px
h2
font-size 18px
+ .diagram
+ margin-left auto
+ margin-right auto
#links
margin-top 20px
@@ -88,6 +92,7 @@ body
color #46483e
#bg-why
+ margin-top 60px
dd
margin-bottom 14px

0 comments on commit 4e07563

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