Skip to content

Commit

Permalink
Merge remote branch 'mocoso/joel'
Browse files Browse the repository at this point in the history
Conflicts:
	example/two/slidesA.md
  • Loading branch information
schacon committed Feb 11, 2010
2 parents 9c45520 + e44757b commit 6eb1d6e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions example/two/slidesA.md
Expand Up @@ -16,12 +16,23 @@
get '/' do
'Hello world!'
end
end

end

!SLIDE execute

# Executable JavaScript #

@@@ javaScript
result = 3 + 3;

!SLIDE

# Write your own slides #

Using [markdown](http://daringfireball.net/projects/markdown/)

!SLIDE

# Title of the slide #

How easy is this?
2 changes: 1 addition & 1 deletion lib/showoff.rb
Expand Up @@ -46,7 +46,7 @@ def js_files
end

def process_markdown(name, content)
slides = content.split('!SLIDE')
slides = content.split(/^!SLIDE/)
slides.delete('')
final = ''
if slides.size > 1
Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Expand Up @@ -26,7 +26,7 @@
<% end %>
<% js_files.each do |js_file| %>
<script type="text/javascript" src="/file/<%= js_file %>"></script>
<script type="text/javascript" src="file/<%= js_file %>"></script>
<% end %>

<script type="text/javascript">
Expand Down

0 comments on commit 6eb1d6e

Please sign in to comment.