asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
104 stars 101 forks source link

Create DocinfoProcessor for embedding JavaScript files in HTML output #31

Open mojavelinux opened 9 years ago

mojavelinux commented 9 years ago

Create a DocinfoProcessor extension for embedding JavaScript files in generated HTML output.

For example:

:javascripts: myjavascript.js

Converts into :

<script type='text/javascript' src='myjavascript.js'></script>

The javascripts attribute can be a comma-separated list of paths. We may also want to specify the location of the JavaScript file explicitly.

:header_javascripts: ...
:footer_javascripts: ...

The default should probably be header.