Module: Dokuen
- Defined in:
- lib/dokuen.rb,
lib/dokuen/version.rb,
lib/dokuen/platform.rb
Defined Under Namespace
Modules: Platform Classes: Application, CLI, Config, Wrapper
Constant Summary collapse
- VERSION =
'0.0.13'
Class Method Summary collapse
Class Method Details
.template(name, bind) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/dokuen.rb', line 4 def self.template(name, bind) path = File.("../../data/templates/#{name}.erb", __FILE__) if File.exists?(path) t = ERB.new(File.read(path)) t.result(bind) else raise "Unknown template: #{name}" end end |