lib/awestruct/handlers/asciidoctor_handler.rb in awestruct-0.5.5 vs lib/awestruct/handlers/asciidoctor_handler.rb in awestruct-0.5.6.beta

- old
+ new

@@ -87,10 +87,11 @@ types = [String, Numeric, TrueClass, FalseClass, Date, Time] opts[:attributes].update(@site.inject({}) {|collector, (key,val)| collector["site-#{key}"] = "#{val}@" if types.detect {|t| val.kind_of? t } collector }) - opts[:attributes]['awestruct'] = true + opts[:attributes]['env'] = @site + opts[:attributes]['env-site'] = true opts[:attributes]['awestruct-version'] = Awestruct::VERSION if @front_matter['header_footer'] opts[:header_footer] = true end path_expanded = File.expand_path path