Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Locating partials

3 views
Skip to first unread message

Kevin Rutherford

unread,
Nov 23, 2024, 6:41:47 AM11/23/24
to nanoc
Hello,

This is my first post here. I want to begin by saying how much I love nanoc, and how much I appreciate the effort that goes into maintaining it etc!

I was looking at the examples in the documentation for the Rendering helper. For instance, the example:

<%= render 'head', :title => 'Foo' %>

Whenever I try something like this, the compiler can't find the 'head' partial, so I'm sure I must be failing to understand something.

The only alternative I can get to work is:

<%= render '/head.*', :title => 'Foo' %>

What am I doing wrong?

Many thanks,
Kevin

Denis Defreyne

unread,
Nov 23, 2024, 6:47:43 AM11/23/24
to na...@googlegroups.com
Hey Kevin,

That is a mistake on my part. `/head.*` is indeed correct. I’ve fixed the documentation on the web site now!

Cheers,

--
You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.

Kevin Rutherford

unread,
Nov 26, 2024, 6:39:27 PM11/26/24
to na...@googlegroups.com
That's fantastic, thanks Denis!

Reply all
Reply to author
Forward
0 new messages