Hi Nathaniel,
Comments below...
On Sun, Jul 8, 2012 at 5:37 PM, Nathanael Phillips <
na...@coffeebot.net> wrote:
> * My folder structure has content and assets as siblings ("/nanoc/content"
> and "/nanoc/assets").
> * config.yaml is:
> -
> type: static
> items_root: /assets
It's not clear from this excerpt if this configuration information
resides under the 'data_sources' key. If not, that could be a problem.
> * rules.rb has:
> route '/assets/*/' do
> "/assets/" + File.basename(item.identifier.chop) + item[:extension]
> end
This looks a bit suspect. For the static data-source, item.identifier
already contains the file extension, so there is no need to add it
again. Moreover, this rule is flattening the source /assets hierarchy
into a single output /assets directory. Is this really intended?
Typically, you could get by with the following much simpler rule which
retains the directory hierarchy:
route '/assets/*/' do
item.identifier.chop
end
> There are no compile errors, but at the same time, the assets don't appear
> in the output folder.
You could try examining the output of the nanoc subcommand
'show-plugins' to see if your static data-source is even recognized.
If it is, subcommands 'show-data' and 'show-rules' might tell you what
nanoc intends to do with the static items.
-- ES