Module

Generators::MarkUp

Inheritance

Handle common markup tasks for the various Html classes

Methods

Instance

Visibility Signature
public cvs_url (url, full_path)
public markup (str, remove_para=false)
public style_url (path, css_name=nil)

Instance Method Detail

cvs_url(url, full_path)

Build a webcvs URL with the given ‘url’ argument. URLs with a ’%s’ in them get the file‘s path sprintfed into them; otherwise they‘re just catenated together.

markup(str, remove_para=false)

Convert a string in markup format into HTML. We keep a cached SimpleMarkup object lying around after the first time we‘re called per object.

style_url(path, css_name=nil)

Qualify a stylesheet URL; if if css_name does not begin with ’/’ or ‘http[s]://’, prepend a prefix relative to path. Otherwise, return it unmodified.