coffeescript + little bit more design

This commit is contained in:
Lorin Werthen 2016-06-09 17:57:40 +02:00
parent 9339cf5a75
commit 4beb5f6347
5 changed files with 46 additions and 9 deletions

View file

@ -6,6 +6,7 @@ ruby '2.3.1'
gem 'nanoc'
gem 'kramdown'
gem 'coffee-script'
group :development do
gem 'adsf'

View file

@ -4,9 +4,14 @@ GEM
adsf (1.2.1)
rack (>= 1.0.0)
coderay (1.1.1)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colored (1.2)
cri (2.7.0)
colored (~> 1.2)
execjs (2.7.0)
ffi (1.9.10)
formatador (0.2.5)
guard (2.14.0)
@ -54,9 +59,13 @@ PLATFORMS
DEPENDENCIES
adsf
coffee-script
guard-nanoc
kramdown
nanoc
RUBY VERSION
ruby 2.3.1p112
BUNDLED WITH
1.12.5

5
Rules
View file

@ -12,6 +12,11 @@ compile '/**/*.erb' do
filter :erb
end
compile '/**/*.coffee' do
filter :coffeescript
write "#{item.identifier.without_ext}.js"
end
# Markdown
compile '/**/*.md' do
filter :kramdown

9
content/index.coffee Normal file
View file

@ -0,0 +1,9 @@
$.get 'https://api.github.com/orgs/ZeusWPI/events', (data) ->
for e in data
console.log e
$('#github-feed ul').append(
$('<li />').append(
$('<img />',
style: 'width: 50px;',
src: e.actor.avatar_url
)))

File diff suppressed because one or more lines are too long