webgen 0.5.8 has just been released! If you don’t know what webgen is,
read the “What’s webgen?” section down below.
This announcement is also available at
This release brings some very useful new features and paves the way for
more new features in the next versions!
The most notable change is that there is no distinction between website
styles and templates anymore - both are called bundles now or more
specifically, for example, style bundles. Since both were basically the
same but provided different kinds of content I thought that it would be
useful to drop the distinction.
This also lead to changes in the CLI command
create which can now
take any number of website bundles from which the new website will be
created. Also, the
create command got a new companion, the
command which can be used to apply website bundles to an already
But that’s not all regarding website bundles: after the addition of a
new source class for handling local or remote, possibily gzipped, tar
archives, it is now very easy to provide style bundles or even complete
websites on websites. For example, if a user develops a new website
style bundle and puts it on his website, anyone can use it by just using
webgen create -b default -b
As usual, some minor enhancements, many bug fixes and many
documentation updates made it into this release! See the changes
section for a complete list of changes and also note that some parts of
the API got deprecated!
Everything except feed handling (due to the dependency
not working) is now Ruby 1.9 compatible! However, be aware that
some used libraries may not work correctly under Ruby 1.9 - this
is, for example, sometimes the case with Maruku!
The distinction between website styles and website templates is no
more - say welcome to website bundles!
Added new source class which can handle local or remote (gzipped)
tar archives - see Source::TarArchive
Added new CLI command for applying a style bundle to a webgen
website - see The
Added new value
nodefor webgen block
content processor - see ContentProcessor::Blocks
The CLI commands
createcan now make use of remote
website bundles due to Source::TarArchive
Added new option
specifying if single newlines should become HTML line break tags
The use of the environment variable
WEBGEN_WEBSITEmoved from the
CLI to the main Webgen::Website class sothat it is also available
when programmatically using webgen.
Tag::Link: the linked-to node is now correctly specified for
partial site regeneration
meta information nodes are now checked in
SourceHandler::Virtual: changes in the meta information for
virtual nodes are now correctly detected
SourceHandler::Metainfo: empty meta information files don’t throw
SourceHandler::Metainfo: deleting a path/alcn from a meta
information file now correctly updates the affected nodes
SourceHandler::Page: detection of
deleted paths between webgen runs now works correctly and doesn’t
throw error anymore (bug reported by Tim H.)
SourceHandler::Fragment: fixed bug with header tag attribute
Fixed a small CSS bug in the website bundle style-andres06
Fixed bug in CLI: commands specified in
#execute_in_envnow correctly sets back prior
Updated used versions of dependencies, rake is now a development
dependency, all development dependencies now use
=. This fixes a bug with rake (reported by Chad Wooley)
The documentation now includes previews of all website style
The configuration option reference now shows the default
values for each option
Updated installation instructions and added platform specific notes
Other general user documentation updates
Went through the whole API documentation and fixed documentation
bugs and added some new documentation
Online API documentation now uses the new RDoc template darkfish
deprecated and will be removed in one of the next versions, use
Node#flaggedis now called
Node#flagged?- the old name will be
removed in one of the next releases.
Webgen::Blockis now named
Webgen::WebgenPageFormatErroris now called
Webgen::Page::FormatError- the old names will be removed in one
of the next releases.
Webgen::ContentProcessor::Contextis now named
- the old name will be removed in one of the next releases.
All website templates have been removed, there is just one
defaultwebsite bundle instead for a default website.
Webgen::WebsiteManagernow handles bundles instead of
styles and templates.
webgen is a tool to generate static websites by combining content
with template files. You create one or more template files in which
you define the layout of your page and where the content should go.
After that you create page files in which you only define the
content. You can use a variety of markup languages like Textile or
Markdown or Haml to define your content and you can add dynamic parts
via ERB or by using webgen tags. This allows the automatic generation
of menus, breadcrumb trails and much more!
gem install webgen