Sha256: dc5c8fa76318d1a8d6b0b25dd8204955e6a4dfac1deb1255ce79e285c115caee

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

= BuildMaster - Building and releasing project and site with Ruby

Homepage::  http://buildmaster.rubyforge.org
Author::    Shane
Copyright:: (c) 2006 BuildMaster on rubyforge
License::   Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)

BuildMaster is a project that targets project building, releasing and site building.

Please post your question at http://groups.google.com/group/buildmaster/ or
send email to buildmaster@googlegroups.com

== Project Building and Releasing

A ruby version of the project building and releasing script as described in
"Pragmatic Project Automation" (http://www.pragmaticprogrammer.com/sk/auto/)

== Site Building

A simple template engine that can build a website by producing the content pages based on the specified source
and decrorating the content pages with a skin.

The supported content sources are <a href="http://www.w3.org/TR/xhtml11/">XHTML</a> and <a href="http://hobix.com/textile/">Textile</a>.


== Task List

* Use RDoc engine (rdoc/template, TemplatePage) to generate template (page
255)
* Use RDoc format for content

require 'rdoc/template'
HTML = %{Hello, %name%.
<p>
The reasons you gave were:
<ul>
START:reasons
<li>%reason_name% (%rank%)
END:reasons
</ul>
}
data = {
'name' => 'Dave Thomas',
'reasons' => [
{ 'reason_name' => 'flexible', 'rank' => '87' },
{ 'reason_name' => 'transparent', 'rank' => '76' },
{ 'reason_name' => 'fun', 'rank' => '94' },
]
}
t = TemplatePage.new(HTML)
t.write_html_on(STDOUT, data)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BuildMaster-0.8.0 README
BuildMaster-0.8.1 README