lib/resources/backends/slim/html5/document.html.slim in hyla-1.0.5 vs lib/resources/backends/slim/html5/document.html.slim in hyla-1.0.6
- old
+ new
@@ -58,9 +58,11 @@
}
});
script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_HTMLorMML'
script type='text/javascript'
|document.addEventListener('DOMContentLoaded', MathJax.Hub.TypeSet)
+ - if attr? :script
+ script type='text/javascript' href=normalize_web_path((attr :script), (attr :scriptsdir, ''))
- unless (docinfo_content = docinfo).empty?
=docinfo_content
body id=@id class=[(attr :doctype),((attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto') ? "#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" : nil)] style=("max-width: #{attr 'max-width'};" if attr? 'max-width')
- unless noheader
/ AsciiDoc leaves an empty header div even if there's no doctitle