Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
generate multiple html files in a single output subdirectory
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Everitt  
View profile  
 More options Apr 19 2012, 5:55 pm
From: Dave Everitt <dever...@innotts.co.uk>
Date: Thu, 19 Apr 2012 14:55:05 -0700 (PDT)
Local: Thurs, Apr 19 2012 5:55 pm
Subject: generate multiple html files in a single output subdirectory
I have a contact form (contact/index.html) with a script that returns
one of three static html pages according to input. I usually use the
following structure:

contact/
  index.html
  contact-thanks.html
  contact-blank.html
  contact-spam.html

I've looked through the manual but can't see a way to compile the
above structure with nanoc? I'd rather not have it generate contact/
contact-thanks/index.html etc.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Clift  
View profile  
 More options Apr 20 2012, 3:58 pm
From: Justin Clift <jus...@salasaga.org>
Date: Sat, 21 Apr 2012 05:58:10 +1000
Local: Fri, Apr 20 2012 3:58 pm
Subject: Re: [nanoc] generate multiple html files in a single output subdirectory
On 20/04/2012, at 7:55 AM, Dave Everitt wrote:

> I have a contact form (contact/index.html) with a script that returns
> one of three static html pages according to input. I usually use the
> following structure:

> contact/
>  index.html
>  contact-thanks.html
>  contact-blank.html
>  contact-spam.html

> I've looked through the manual but can't see a way to compile the
> above structure with nanoc? I'd rather not have it generate contact/
> contact-thanks/index.html etc.

Hi Dave,

That's what we needed for our sites too.

You can probably (pretty much) cut-n-paste our Rules file, into your own:

  https://github.com/aeolusproject/aeolus-website/blob/master/nanocsite...

Look specifically at lines 51 + 52:

  # Write out haml files with a flat dir structure
  item.identifier.chop + '.' + 'html'

That's what gives it the flat structure.  Note that I had to surround that
with a sanity check (line 48), so nanoc doesn't barf if it comes across an
index.haml file in a subdir.  You may or may not need that bit. :)

Hope that helps.

Regards and best wishes,

Justin Clift


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »