> I''d like to use sass to generate a css file. I have a
style.template
> containing
>
> <webgen:block name="stylesheet" />
>
> and style.page containing
>
> --- name:stylesheet
> #main
> :width 90%
>
> etc., and a metainfo file containing
>
> style.*
> template: style.template
>
> Is the right way to do things? The style file ends up with an .html
> extension. How do I change it to .css?
Have a look at
http://webgen.rubyforge.org/documentation/sourcehandler/copy.html
The Copy handler not only allows you to just copy a file verbatim from
the source to the output directory, but it also allows you to apply one
content processor. You just need to create a file called style.sass.css
with the sass code and it gets compiled into a style.css file!
If you want to use a page file, you could do the following:
---
template: ~
output_path_style: [:parent, :cnbase, [., :lang], .css]
--- name:content pipeline:sass
#main
:width 90%
The output meta information output_path_style tells webgen to use a
custom output path for this page file, the template meta info tells
webgen not to use any templates for this page file and the pipeline
option on the block starting line tells webgen to just use sass content
processor for the block.
-- Thomas