Sha256: e8feac401338516a3c27db2440817ba42697b7ad1774213e38d1a83929113e9e

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

---
title: Style Example
---
## General Information

This sample website showcases the website style *<%= context.content_node.parent.cn %>*. Most
website styles include dynamic parts by default, for example, automatically generated menus and
breadcrumb trails. All such dynamic parts are active in this showcase like they would be on a normal
website.

## How to use this style

This website style can be used when creating a new website by using the following command:

    webgen create -b default -b <%= context.content_node.parent.cn %> SITE_DIR

Or it can be applied later on to an already existing website by using the following command:

    webgen apply <%= context.content_node.parent.cn %>

## Style Information

<dl>
<%
require 'webgen/websitemanager'
infos = Webgen::WebsiteManager.new(context.website).bundles[context.content_node.parent.cn.chomp('/')]
infos.instance_eval {@table}.sort {|(ak,av), (bk,bv)| ak.to_s <=> bk.to_s}.each do |name, value|
next if name.to_s == 'paths'
%>
<dt><%= name.to_s.capitalize %></dt>
<dd><%= ::ERB::Util::h(value) %></dd>
<% end %>
</dl>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.9.20090620 misc/style.page
gettalong-webgen-0.5.9.20090626 misc/style.page
webgen-0.5.17 misc/style.page
webgen-0.5.15 misc/style.page
webgen-0.5.14 misc/style.page
webgen-0.5.13 misc/style.page
webgen-0.5.12 misc/style.page
webgen-0.5.11 misc/style.page
webgen-0.5.10 misc/style.page
webgen-0.5.9 misc/style.page