#options ⇒ Object

# File 'lib/awestruct/handlers/asciidoctor_handler.rb', line 79defoptionsopts=superopts[:attributes]||={}opts[:attributes].update(@front_matter.inject({}){|collector,(key,val)|collector["page-#{key}"]="#{val}@"collector})# Keep only values that can be coerced to as string
types=[String,Numeric,TrueClass,FalseClass,Date,Time]opts[:attributes].update(@site.inject({}){|collector,(key,val)|collector["site-#{key}"]="#{val}@"iftypes.detect{|t|val.kind_of?t}collector})opts[:attributes]['env']=@siteopts[:attributes]['env-site']=trueopts[:attributes]['awestruct-version']=Awestruct::VERSIONif@front_matter['header_footer']opts[:header_footer]=trueendpath_expanded=File.expand_pathpathopts[:attributes]['docdir']=File.dirnamepath_expandedopts[:attributes]['docfile']=path_expandedopts[:attributes]['docname']=simple_namepath_mtime=path.mtimeopts[:attributes]['docdate']=docdate=path_mtime.strftime('%Y-%m-%d')opts[:attributes]['doctime']=doctime=path_mtime.strftime('%H:%M:%S %Z')opts[:attributes]['docdatetime']=%(#{docdate}#{doctime})# TODO once Asciidoctor 1.5.0 is release, we should set the base_dir as a jail
# we can't do this before 1.5.0 due to a bug in how includes are resolved
if(Object.const_defined?'Asciidoctor')&&Asciidoctor::VERSION>='1.5.0'opts[:base_dir]||=@site.config.direndoptsend