I have a Compass extension named Aurora that provides three templates, default
, corona
, and polaris
. They share a set of files that get pulled in and placed via each's manifest.rb
file. I share these files so I don't need identical copies of each in each template.
That being said, for one shared file, I'd like to add a line of code if I'm using the default
template. I thought was I could do something like this:
# file.txt.erb
This is a file! Yay!
<% if Compass.template == 'default' %>
This is an extra line for when Default is used