class Webgen::Page

A Page object wraps a meta information hash and a hash of {block name => block content} associations.

It is normally generated from a file or string in Webgen Page Format using the provided class methods.



The hash of blocks for the page.


The contents of the meta information block.

Public Class Methods


Parse the given string data in Webgen Page Format.

This method returns a Page object containing the hash with the meta information and the parsed blocks.

new(meta_info = {}, blocks = {})

Create a new Page object with the meta information provided in meta_info and the given blocks.

Public Instance Methods


Convert the Page object back into a string.