Fork of https://github.com/modality/charred-black. Short term, has some fixes. Long term, may include a tool to create and edit stock/lifepath/skill/trait data. http://charred.obscuritus.ca:8080/#/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
charred-gold/src/lib/wiki.rb

22 lines
331 B

require 'erb'
class WikiSheet
include ERB::Util
attr_accessor :character
def initialize(character)
@character = character
end
def render()
load_template
ERB.new(@template, 0, '>').result_with_hash(@character)
end
private
def load_template
@template = File.read("data/WikiSheet.erb")
end
end