n3bulous-infuse 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -41,21 +41,21 @@ slide "Who is this Guy?", <<_EOS
41
41
  _EOS
42
42
  </pre>
43
43
 
44
- h2. Future
44
+ h2. Future Features
45
45
 
46
46
  * Add cli help and options
47
- * Support external resources (images, ...)
48
- * Figure out why my redcloth dependency check fails.
49
47
  * Syntax highlighting
50
- * Support TextMate
51
- * Support Rakefile
48
+ * Support TextMate (done, but need to figure out how to bundle and deploy it.)
52
49
  * Tests for included code
53
50
  * Support Markdown
54
51
  * Custom theme support
55
- * Code formatting
56
52
  * Animated transitions
53
+ * Figure out why my redcloth dependency check fails.
54
+ * Support Rakefile?
57
55
  * Let me know, or contribute!
58
56
 
57
+ * -Support external resources (images, ...)- (supported by textile)
58
+
59
59
  h2. Useful Info
60
60
 
61
61
  * You can use "iRed Light":http://www.filewell.com/iRedLite/ to control any application. In this case, assign the up and down cursor keys to your preferred buttons.
@@ -15,13 +15,15 @@ class InfuseDSL
15
15
  @operashow_templates = {
16
16
  :header => "operashow-header.html.erb",
17
17
  :footer => "operashow-footer.html.erb",
18
- :slide => "slide.html.erb"
18
+ :slide => "slide.html.erb",
19
+ :title_slide => "title-page.html.erb"
19
20
  }
20
21
 
21
22
  @html_templates = {
22
23
  :header => "header.html.erb",
23
24
  :footer => "footer.html.erb",
24
- :slide => "slide.html.erb"
25
+ :slide => "slide.html.erb",
26
+ :title_slide => "title-page.html.erb"
25
27
  }
26
28
  end
27
29
 
@@ -30,8 +32,8 @@ class InfuseDSL
30
32
  end
31
33
 
32
34
  def run
33
- html_output = generate_html_slideshow
34
- operashow_output = generate_operashow_slideshow
35
+ html_output = generate_slideshow(@html_templates)
36
+ operashow_output = generate_slideshow(@operashow_templates)
35
37
 
36
38
  prepare_target_dir
37
39
 
@@ -47,32 +49,27 @@ class InfuseDSL
47
49
 
48
50
  private
49
51
 
50
- def generate_slide_output(header_tpl, footer_tpl, slide_tpl)
52
+ def generate_slide_output(header_tpl, footer_tpl, slide_tpl, title_tpl)
51
53
  header_with_data = ERB.new(header_tpl, 0, ">").result(self.send(:binding))
52
54
  footer_with_data = ERB.new(footer_tpl, 0, ">").result(self.send(:binding))
53
55
 
56
+ title_slide_with_data = ERB.new(title_tpl, 0, ">").result(self.send(:binding))
57
+
54
58
  slides_with_data = ""
55
59
  @slides.each do |s|
56
60
  slides_with_data << s.convert(slide_tpl) + "\n\n"
57
61
  end
58
62
 
59
- output = header_with_data + "\n" + slides_with_data + "\n" + footer_with_data
60
- end
61
-
62
- def generate_html_slideshow
63
- header_tpl = IO.read(@template_dir + @html_templates[:header])
64
- footer_tpl = IO.read(@template_dir + @html_templates[:footer])
65
- slide_tpl = IO.read(@template_dir + @html_templates[:slide])
66
-
67
- generate_slide_output(header_tpl, footer_tpl, slide_tpl)
63
+ output = header_with_data + "\n" + title_slide_with_data + "\n" + slides_with_data + "\n" + footer_with_data
68
64
  end
69
65
 
70
- def generate_operashow_slideshow
71
- header_tpl = IO.read(@template_dir + @operashow_templates[:header])
72
- footer_tpl = IO.read(@template_dir + @operashow_templates[:footer])
73
- slide_tpl = IO.read(@template_dir + @operashow_templates[:slide])
66
+ def generate_slideshow(templates)
67
+ header_tpl = IO.read(@template_dir + templates[:header])
68
+ footer_tpl = IO.read(@template_dir + templates[:footer])
69
+ slide_tpl = IO.read(@template_dir + templates[:slide])
70
+ title_tpl = IO.read(@template_dir + templates[:title_slide])
74
71
 
75
- generate_slide_output(header_tpl, footer_tpl, slide_tpl)
72
+ generate_slide_output(header_tpl, footer_tpl, slide_tpl, title_tpl)
76
73
  end
77
74
 
78
75
  def output_file(name_prefix="")
@@ -37,3 +37,18 @@ div#header, div#footer {
37
37
  .step { color: gray; }
38
38
  /* or hide next steps e.g. .step { visibility: hidden; } */
39
39
  .stepcurrent { color: yellow; }
40
+
41
+ .center-img {
42
+ display: block;
43
+ margin-left: auto;
44
+ margin-right: auto;
45
+ }
46
+
47
+
48
+ .title-slide {
49
+ text-align: center;
50
+ }
51
+
52
+ .title-slide h1 { font-size: 4em; }
53
+ .title-slide h2 { font-size: 3em; }
54
+ .title-slide h3 { font-size: 2em; }
@@ -0,0 +1,8 @@
1
+ <div class="slide title-slide">
2
+ <h1><%= @title %></h1>
3
+ <h2><%= @subtitle %></h2>
4
+ <h3>By <%= @author %></h3>
5
+ <h3><%= @company %></h3>
6
+ <h3>Copyright &copy; <%= @copyright %></h3>
7
+ </div>
8
+
@@ -3,7 +3,7 @@ module Infuse
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: n3bulous-infuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin McFadden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-04 00:00:00 -08:00
12
+ date: 2009-03-06 00:00:00 -08:00
13
13
  default_executable: infuse
14
14
  dependencies: []
15
15