Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Fix Sinatra app to use Deck and markdown without conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Choi committed Aug 15, 2012
1 parent a244d26 commit 447ebf7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require './web'
run Sinatra::Application
run RubyWorkshop

2 changes: 1 addition & 1 deletion views/workshop/curriculum.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1030,4 +1030,4 @@ Add flash notice to app/views/layouts/application.html.erb



[http://bit.ly/ruby-resources](http://bit.ly/ruby-resources)
[http://bit.ly/ruby-resources](http://bit.ly/ruby-resources)
4 changes: 4 additions & 0 deletions views/workshop/workshop.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<div class="alert alert-info">
<strong>Note to attendees</strong>: This is material that we expect you to read during the workshop, not before it. It may not be in its final state. So please wait until then to study this material.
</div>

# Slide Decks:

## All-Hands Workshop Intro:
Expand Down
1 change: 1 addition & 0 deletions web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def initialize
slides = Deck::Slide.split(File.read("views/#{page}.deck.markdown"))
Deck::SlideDeck.new(:slides => slides).to_pretty
elsif File.exist? "views/#{page}.markdown"
@markdown = true
markdown page.intern
else
forward
Expand Down

0 comments on commit 447ebf7

Please sign in to comment.