class Troy::Page
def save_to(path)
Save current page to the specified path.
def save_to(path) File.open(path, "w") do |file| I18n.with_locale(meta.locale) do file << render end end end
def save_to(path) File.open(path, "w") do |file| I18n.with_locale(meta.locale) do file << render end end end