Permalink
Browse files

Better file organization

git-svn-id: http://atomicobjectrb.rubyforge.org/svn/trunk/publisher@23 7bd720c3-caf9-44c9-a48d-612f81e63739
  • Loading branch information...
1 parent fe8d2e8 commit 4f8319173f2a0398fcc6d667cbc41a74bacaeeca dcrosby42 committed Nov 22, 2007
View
@@ -1,7 +1,10 @@
desc "Rewrite index.html using index.erb and publisher_homepage.html"
task :index do
require 'erb'
- html = ERB.new(File.read("index.erb")).result
+ @title = "Publisher - atomicobject.rb"
+ @plugin_install = "$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/publisher"
+ @header_html = File.read("page_header.html")
+ html = ERB.new(File.read("index.erb")).result(binding)
fname = "index.html"
File.open(fname,"w") do |f|
f.print html
View
@@ -1,6 +1,6 @@
<html>
<head>
- <title>Publisher - atomicobject.rb</title>
+ <title><%= @title %></title>
</head>
<style>
#rails_plugin_installation {
@@ -14,9 +14,9 @@
<div align="center">
- <%= File.read("publisher_homepage.html") %>
+ <%= @header_html %>
- <div id="rails_plugin_installation">$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/publisher</div>
+ <div id="rails_plugin_installation"><%= @plugin_install %></div>
<a href="rdoc/index.html"><img border=0 src="sample_code.png"></a>
</div>
View
@@ -21,7 +21,7 @@
<area shape=rect coords="481,91,635,108" href="http://atomicobject.com">
<area shape=rect coords="21,13,83,75" href="http://atomicobject.com">
</map>
-<img border=0 src="publisher_homepage.png" usemap="#GraffleExport">
+<img border=0 src="page_header.png" usemap="#GraffleExport">
<div id="rails_plugin_installation">$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/publisher</div>
@@ -5,4 +5,4 @@
<area shape=rect coords="481,91,635,108" href="http://atomicobject.com">
<area shape=rect coords="21,13,83,75" href="http://atomicobject.com">
</map>
-<img border=0 src="publisher_homepage.png" usemap="#GraffleExport">
+<img border=0 src="page_header.png" usemap="#GraffleExport">
File renamed without changes

0 comments on commit 4f83191

Please sign in to comment.