def preview_page(name, data, format)
      page = @page_class.new(self)
      ext  = @page_class.format_to_ext(format.to_sym)
      name = @page_class.cname(name) + '.' + ext
      blob = OpenStruct.new(:name => name, :data => data, :is_symlink => false)
      page.populate(blob)
      page.version = @access.commit(@ref)
      page
    end
def preview_page(name, data, format)
      page = @page_class.new(self)
      ext  = @page_class.format_to_ext(format.to_sym)
      name = @page_class.cname(name) + '.' + ext
      blob = OpenStruct.new(:name => name, :data => data, :is_symlink => false)
      page.populate(blob)
      page.version = @access.commit(@ref)
      page
    end
Public: Create an in-memory Page with the given data and format. This
 is useful for previewing what content will look like before committing
 it to the repository.

 name   - The String name of the page.
 format - The Symbol format of the page.
 data   - The new String contents of the page.

 Returns the in-memory Gollum::Page.