hyla 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile.lock +35 -7
- data/README.adoc +10 -2
- data/bin/hyla +16 -13
- data/hyla.gemspec +6 -3
- data/lib/hyla.rb +5 -1
- data/lib/hyla/command.rb +12 -10
- data/lib/hyla/commands/create.rb +21 -12
- data/lib/hyla/commands/generate.rb +168 -59
- data/lib/hyla/commands/new.rb +36 -15
- data/lib/hyla/commands/watch.rb +6 -2
- data/lib/hyla/configuration.rb +169 -27
- data/lib/hyla/core_ext.rb +24 -0
- data/lib/hyla/project.rb +1 -1
- data/lib/resources/backends/haml/deckjs/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/deckjs/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/deckjs/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/deckjs/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_listing.html.haml +32 -0
- data/lib/resources/backends/haml/deckjs/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_olist.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_open.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/deckjs/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_preamble.html.haml +3 -0
- data/lib/resources/backends/haml/deckjs/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_table.html.haml +48 -0
- data/lib/resources/backends/haml/deckjs/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/deckjs/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/deckjs/block_video.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/document.html.haml +182 -0
- data/lib/resources/backends/haml/deckjs/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/deckjs/inline_anchor.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/deckjs/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_quoted.html.haml +19 -0
- data/lib/resources/backends/haml/deckjs/section.html.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_admonition.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_colist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_dlist.xml.haml +61 -0
- data/lib/resources/backends/haml/docbook45/block_example.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_floating_title.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_image.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_listing.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_literal.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_olist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_open.xml.haml +25 -0
- data/lib/resources/backends/haml/docbook45/block_page_break.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_paragraph.xml.haml +6 -0
- data/lib/resources/backends/haml/docbook45/block_pass.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_preamble.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_quote.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/block_ruler.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/block_sidebar.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_table.xml.haml +37 -0
- data/lib/resources/backends/haml/docbook45/block_ulist.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/block_verse.xml.haml +10 -0
- data/lib/resources/backends/haml/docbook45/document.xml.haml +63 -0
- data/lib/resources/backends/haml/docbook45/embedded.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/helpers.rb +7 -0
- data/lib/resources/backends/haml/docbook45/inline_anchor.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/inline_break.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/inline_callout.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/inline_footnote.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_image.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_indexterm.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/inline_quoted.xml.haml +21 -0
- data/lib/resources/backends/haml/docbook45/section.xml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/html5/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/html5/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/html5/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/html5/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_listing.html.haml +31 -0
- data/lib/resources/backends/haml/html5/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_math.html.haml +10 -0
- data/lib/resources/backends/haml/html5/block_olist.html.haml +9 -0
- data/lib/resources/backends/haml/html5/block_open.html.haml +15 -0
- data/lib/resources/backends/haml/html5/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/html5/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_preamble.html.haml +6 -0
- data/lib/resources/backends/haml/html5/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/html5/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_table.html.haml +47 -0
- data/lib/resources/backends/haml/html5/block_toc.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/html5/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/html5/block_video.html.haml +27 -0
- data/lib/resources/backends/haml/html5/document.html.haml +114 -0
- data/lib/resources/backends/haml/html5/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/html5/helpers.rb +7 -0
- data/lib/resources/backends/haml/html5/inline_anchor.html.haml +11 -0
- data/lib/resources/backends/haml/html5/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_button.html.haml +1 -0
- data/lib/resources/backends/haml/html5/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/html5/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/html5/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_kbd.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_menu.html.haml +15 -0
- data/lib/resources/backends/haml/html5/inline_quoted.html.haml +22 -0
- data/lib/resources/backends/haml/html5/section.html.haml +21 -0
- data/lib/resources/backends/haml/revealjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/revealjs/block_olist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/block_ulist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/document.html.haml +61 -0
- data/lib/resources/backends/haml/revealjs/section.html.haml +10 -0
- data/lib/resources/backends/slim/docbook45/block_admonition.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_colist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_dlist.xml.slim +61 -0
- data/lib/resources/backends/slim/docbook45/block_example.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_floating_title.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_image.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_listing.xml.slim +14 -0
- data/lib/resources/backends/slim/docbook45/block_literal.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_olist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_open.xml.slim +25 -0
- data/lib/resources/backends/slim/docbook45/block_page_break.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_paragraph.xml.slim +6 -0
- data/lib/resources/backends/slim/docbook45/block_pass.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_preamble.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_quote.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_ruler.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/block_sidebar.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_table.xml.slim +36 -0
- data/lib/resources/backends/slim/docbook45/block_ulist.xml.slim +18 -0
- data/lib/resources/backends/slim/docbook45/block_verse.xml.slim +10 -0
- data/lib/resources/backends/slim/docbook45/document.xml.slim +63 -0
- data/lib/resources/backends/slim/docbook45/embedded.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/helpers.rb +9 -0
- data/lib/resources/backends/slim/docbook45/inline_anchor.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/inline_break.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/inline_callout.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/inline_footnote.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_image.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_indexterm.xml.slim +16 -0
- data/lib/resources/backends/slim/docbook45/inline_quoted.xml.slim +21 -0
- data/lib/resources/backends/slim/docbook45/section.xml.slim +5 -0
- data/lib/resources/backends/slim/document.html.bk.slim +335 -0
- data/lib/resources/backends/slim/dzslides/block_admonition.html.slim +19 -0
- data/lib/resources/backends/slim/dzslides/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/dzslides/block_dlist.html.slim +10 -0
- data/lib/resources/backends/slim/dzslides/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_image.html.slim +14 -0
- data/lib/resources/backends/slim/dzslides/block_listing.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/block_literal.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_olist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_open.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_paragraph.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_quote.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/dzslides/block_ulist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_verse.html.slim +12 -0
- data/lib/resources/backends/slim/dzslides/block_video.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/document.html.slim +67 -0
- data/lib/resources/backends/slim/dzslides/embedded.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/helpers.rb +9 -0
- data/lib/resources/backends/slim/dzslides/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/dzslides/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/dzslides/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/inline_quoted.html.slim +23 -0
- data/lib/resources/backends/slim/dzslides/section.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/html5/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/html5/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/html5/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/html5/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/html5/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/html5/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/html5/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/html5/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/html5/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/html5/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/html5/document.html.slim +112 -0
- data/lib/resources/backends/slim/html5/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/html5/helpers.rb +8 -0
- data/lib/resources/backends/slim/html5/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/html5/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/html5/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/html5/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/html5/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/html5/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/html5/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/html5/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/html5/section.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/revealjs/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/revealjs/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/revealjs/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/revealjs/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/revealjs/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/revealjs/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/revealjs/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/revealjs/document.html.slim +87 -0
- data/lib/resources/backends/slim/revealjs/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/helpers.rb +8 -0
- data/lib/resources/backends/slim/revealjs/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/revealjs/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/revealjs/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/revealjs/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/revealjs/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/revealjs/section.html.slim +3 -0
- data/lib/resources/deck.js/core/deck.core.css +407 -0
- data/lib/resources/deck.js/core/deck.core.js +498 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/README.md +10 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/deck.blank.js +33 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.css +41 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.html +7 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.js +170 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.css +13 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.html +2 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.js +142 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.css +47 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.js +187 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.css +43 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.html +3 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.js +92 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.css +28 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.js +170 -0
- data/lib/resources/deck.js/extensions/split/README.md +30 -0
- data/lib/resources/deck.js/extensions/split/deck.split.js +59 -0
- data/lib/resources/deck.js/extensions/status/deck.status.css +18 -0
- data/lib/resources/deck.js/extensions/status/deck.status.html +6 -0
- data/lib/resources/deck.js/extensions/status/deck.status.js +95 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.css +40 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.html +12 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.js +271 -0
- data/lib/resources/deck.js/jquery-1.7.2.min.js +4 -0
- data/lib/resources/deck.js/jquery.min.js +4 -0
- data/lib/resources/deck.js/modernizr.custom.js +4 -0
- data/lib/resources/deck.js/themes/style/beamer.css +286 -0
- data/lib/resources/deck.js/themes/style/neon.css +123 -0
- data/lib/resources/deck.js/themes/style/swiss.css +84 -0
- data/lib/resources/deck.js/themes/style/web-2.0.css +214 -0
- data/lib/resources/deck.js/themes/transition/beamer.css +66 -0
- data/lib/resources/deck.js/themes/transition/fade.css +43 -0
- data/lib/resources/deck.js/themes/transition/horizontal-slide.css +76 -0
- data/lib/resources/deck.js/themes/transition/vertical-slide.css +94 -0
- data/lib/resources/revealjs/LICENSE +19 -0
- data/lib/resources/revealjs/css/print/paper.css +176 -0
- data/lib/resources/revealjs/css/print/pdf.css +190 -0
- data/lib/resources/revealjs/css/reveal.css +1880 -0
- data/lib/resources/revealjs/css/reveal.min.css +7 -0
- data/lib/resources/revealjs/css/theme/README.md +25 -0
- data/lib/resources/revealjs/css/theme/beige.css +148 -0
- data/lib/resources/revealjs/css/theme/blood.css +175 -0
- data/lib/resources/revealjs/css/theme/default.css +148 -0
- data/lib/resources/revealjs/css/theme/moon.css +148 -0
- data/lib/resources/revealjs/css/theme/night.css +136 -0
- data/lib/resources/revealjs/css/theme/serif.css +138 -0
- data/lib/resources/revealjs/css/theme/simple.css +138 -0
- data/lib/resources/revealjs/css/theme/sky.css +145 -0
- data/lib/resources/revealjs/css/theme/solarized.css +148 -0
- data/lib/resources/revealjs/css/theme/source/beige.scss +50 -0
- data/lib/resources/revealjs/css/theme/source/blood.scss +91 -0
- data/lib/resources/revealjs/css/theme/source/default.scss +42 -0
- data/lib/resources/revealjs/css/theme/source/moon.scss +68 -0
- data/lib/resources/revealjs/css/theme/source/night.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/serif.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/simple.scss +38 -0
- data/lib/resources/revealjs/css/theme/source/sky.scss +46 -0
- data/lib/resources/revealjs/css/theme/source/solarized.scss +74 -0
- data/lib/resources/revealjs/css/theme/template/mixins.scss +29 -0
- data/lib/resources/revealjs/css/theme/template/settings.scss +34 -0
- data/lib/resources/revealjs/css/theme/template/theme.scss +170 -0
- data/lib/resources/revealjs/js/reveal.js +3382 -0
- data/lib/resources/revealjs/js/reveal.min.js +9 -0
- data/lib/resources/revealjs/lib/css/zenburn.css +114 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.eot +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.svg +230 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.ttf +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.woff +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic_license +2 -0
- data/lib/resources/revealjs/lib/js/classList.js +2 -0
- data/lib/resources/revealjs/lib/js/head.min.js +8 -0
- data/lib/resources/revealjs/lib/js/html5shiv.js +7 -0
- data/lib/resources/revealjs/plugin/highlight/highlight.js +32 -0
- data/lib/resources/revealjs/plugin/leap/leap.js +157 -0
- data/lib/resources/revealjs/plugin/markdown/example.html +129 -0
- data/lib/resources/revealjs/plugin/markdown/example.md +31 -0
- data/lib/resources/revealjs/plugin/markdown/markdown.js +392 -0
- data/lib/resources/revealjs/plugin/markdown/marked.js +37 -0
- data/lib/resources/revealjs/plugin/math/math.js +64 -0
- data/lib/resources/revealjs/plugin/multiplex/client.js +13 -0
- data/lib/resources/revealjs/plugin/multiplex/index.js +56 -0
- data/lib/resources/revealjs/plugin/multiplex/master.js +51 -0
- data/lib/resources/revealjs/plugin/notes-server/client.js +57 -0
- data/lib/resources/revealjs/plugin/notes-server/index.js +59 -0
- data/lib/resources/revealjs/plugin/notes-server/notes.html +142 -0
- data/lib/resources/revealjs/plugin/notes/notes.html +267 -0
- data/lib/resources/revealjs/plugin/notes/notes.js +78 -0
- data/lib/resources/revealjs/plugin/postmessage/example.html +39 -0
- data/lib/resources/revealjs/plugin/postmessage/postmessage.js +42 -0
- data/lib/resources/revealjs/plugin/print-pdf/print-pdf.js +44 -0
- data/lib/resources/revealjs/plugin/remotes/remotes.js +39 -0
- data/lib/resources/revealjs/plugin/search/search.js +196 -0
- data/lib/resources/revealjs/plugin/zoom-js/zoom.js +258 -0
- data/lib/resources/styles/asciidoctor.css +652 -0
- data/lib/resources/styles/colony.css +660 -0
- data/lib/resources/styles/foundation-lime.css +657 -0
- data/lib/resources/styles/foundation-potion.css +657 -0
- data/lib/resources/styles/foundation.css +648 -0
- data/lib/resources/styles/github.css +669 -0
- data/lib/resources/styles/golo.css +669 -0
- data/lib/resources/styles/iconic.css +692 -0
- data/lib/resources/styles/maker.css +668 -0
- data/lib/resources/styles/readthedocs.css +669 -0
- data/lib/resources/styles/redhat.css +654 -0
- data/lib/resources/styles/riak.css +689 -0
- data/lib/resources/styles/rocket-panda.css +662 -0
- data/lib/resources/styles/rubygems.css +650 -0
- data/lib/templates/_config.yml +27 -0
- data/lib/templates/{training → book}/GemFile +2 -1
- data/lib/templates/{training → book}/development/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/development/book.adoc +121 -0
- data/lib/templates/{training → book}/development/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/development/video/small.ogv +0 -0
- data/lib/templates/{training → book}/introduction/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/introduction/book.adoc +121 -0
- data/lib/templates/{training → book}/introduction/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/introduction/video/small.ogv +0 -0
- data/lib/templates/book/readme.adoc +10 -0
- data/lib/templates/sample/asciidoc_article.adoc +101 -10
- data/lib/templates/sample/asciidoc_audio.adoc +1 -1
- data/lib/templates/sample/asciidoc_book.adoc +125 -0
- data/lib/templates/sample/asciidoc_image.adoc +26 -0
- data/lib/templates/sample/asciidoc_report.adoc +66 -0
- data/lib/templates/sample/asciidoc_source.adoc +53 -0
- data/lib/templates/sample/asciidoc_table.adoc +36 -0
- data/lib/templates/sample/asciidoc_video.adoc +9 -1
- data/lib/templates/sample/slideshow_revealjs.adoc +26 -0
- data/lib/templates/training-exercises/_config.yml +3 -0
- data/lib/templates/training/{introduction → module-1}/article.adoc +7 -2
- data/lib/templates/training/module-1/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-1/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-1/video/small.ogv +0 -0
- data/lib/templates/training/{development → module-2}/article.adoc +7 -2
- data/lib/templates/training/module-2/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-2/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-2/video/small.ogv +0 -0
- data/lib/templates/training/readme.adoc +10 -1
- data/scenario.adoc +113 -20
- data/test/reports/test-1.0.x-11-12-2013.txt +123 -0
- data/todo.adoc +39 -0
- metadata +473 -51
- data/lib/hyla/training.rb +0 -25
- data/lib/templates/sample/asciidoc_source_highlight.adoc +0 -37
- data/lib/templates/training-exercises/Gemfile +0 -4
@@ -0,0 +1,19 @@
|
|
1
|
+
- if (has_role? 'details') or (has_role? 'speaker')
|
2
|
+
details
|
3
|
+
details open=true
|
4
|
+
summary Notes
|
5
|
+
=content
|
6
|
+
- else
|
7
|
+
.admonitionblock id=@id class=[(attr :name),role]
|
8
|
+
table: tr
|
9
|
+
td.icon
|
10
|
+
- if @document.attr? :icons, 'font'
|
11
|
+
i class=%(icon-#{attr :name}) title=@caption
|
12
|
+
- elsif @document.attr? :icons
|
13
|
+
img src=icon_uri(attr :name) alt=@caption
|
14
|
+
- else
|
15
|
+
.title=@caption
|
16
|
+
td.content
|
17
|
+
- if title?
|
18
|
+
.title=title
|
19
|
+
=content
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.colist id=@id class=[@style,role]
|
2
|
+
- if title?
|
3
|
+
.title=title
|
4
|
+
- if @document.attr? :icons
|
5
|
+
- font_icons = @document.attr? :icons, 'font'
|
6
|
+
table
|
7
|
+
- items.each_with_index do |item, i|
|
8
|
+
- num = i + 1
|
9
|
+
tr
|
10
|
+
td
|
11
|
+
- if font_icons
|
12
|
+
i.conum data-value=num
|
13
|
+
b=num
|
14
|
+
- else
|
15
|
+
img src=icon_uri("callouts/#{num}") alt=num
|
16
|
+
td=item.text
|
17
|
+
- else
|
18
|
+
ol
|
19
|
+
- items.each do |item|
|
20
|
+
li.item: p=item.text
|
@@ -0,0 +1 @@
|
|
1
|
+
*{:tag=>"h#{@level + 1}", :id=>@id, :class=>[@style,role].compact} =title
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/begin captures
|
2
|
+
- image_tmpl = Helpers.capture_output do
|
3
|
+
img class=role src=image_uri(attr :target) alt=(attr :alt) width=(attr :width) height=(attr :height)
|
4
|
+
- linked_image_tmpl = Helpers.capture_output do
|
5
|
+
a.image href=(attr :link)
|
6
|
+
- image_tmpl.yield
|
7
|
+
/end captures
|
8
|
+
- if title? || @caption
|
9
|
+
/perhaps the role should go on the figure
|
10
|
+
figure
|
11
|
+
- (attr? :link) ? linked_image_tmpl.yield : image_tmpl.yield
|
12
|
+
figcaption class=(attr :crole) =captioned_title
|
13
|
+
- else
|
14
|
+
- (attr? :link) ? linked_image_tmpl.yield : image_tmpl.yield
|
@@ -0,0 +1,8 @@
|
|
1
|
+
.listingblock id=@id class=role
|
2
|
+
- if title?
|
3
|
+
.title=captioned_title
|
4
|
+
- if @style == 'source' && (attr? :language)
|
5
|
+
pre.highlight class=[(attr? 'source-highlighter', 'coderay') ? 'CodeRay' : nil, (option? 'nowrap') ? 'nowrap' : nil]
|
6
|
+
code class=(attr :language) style=((attr? 'max-height') ? "max-height: #{attr 'max-height'}px" : nil) =content
|
7
|
+
- else
|
8
|
+
pre style=((attr? 'max-height') ? "max-height: #{attr 'max-height'}px" : nil) =content
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- cached_content = content
|
2
|
+
- if cached_content.start_with? '$ '
|
3
|
+
.listingblock id=@id class=(attr :role)
|
4
|
+
- if title?
|
5
|
+
.title=captioned_title
|
6
|
+
pre.highlight : code class='bash' =cached_content
|
7
|
+
- else
|
8
|
+
.literalblock id=@id class=role
|
9
|
+
- if title?
|
10
|
+
.title=title
|
11
|
+
pre.literal style=((attr? 'max-height') ? "max-height: #{attr 'max-height'}px" : nil) =content
|
@@ -0,0 +1 @@
|
|
1
|
+
p class=role =content
|
@@ -0,0 +1 @@
|
|
1
|
+
=content
|
@@ -0,0 +1 @@
|
|
1
|
+
hr
|
@@ -0,0 +1,45 @@
|
|
1
|
+
table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :grid, 'all'}",role]
|
2
|
+
style=[("width: #{attr :tablepcwidth}%" unless option? 'autowidth'),("float: #{attr :float}" if attr? :float)].compact.join('; '))
|
3
|
+
- if title?
|
4
|
+
caption.title=captioned_title
|
5
|
+
- unless (attr :rowcount).zero?
|
6
|
+
colgroup
|
7
|
+
- if option? 'autowidth'
|
8
|
+
- @columns.each do
|
9
|
+
col
|
10
|
+
- else
|
11
|
+
- @columns.each do |col|
|
12
|
+
col style="width: #{col.attr :colpcwidth}%"
|
13
|
+
- [:head, :foot, :body].select {|tblsec| !@rows[tblsec].empty? }.each do |tblsec|
|
14
|
+
*{:tag=>"t#{tblsec}"}
|
15
|
+
- @rows[tblsec].each do |row|
|
16
|
+
tr
|
17
|
+
- row.each do |cell|
|
18
|
+
/ store reference of content in advance to resolve attribute assignments in cells
|
19
|
+
- if tblsec == :head
|
20
|
+
- cell_content = cell.text
|
21
|
+
- else
|
22
|
+
- case cell.style
|
23
|
+
- when :verse, :literal
|
24
|
+
- cell_content = cell.text
|
25
|
+
- else
|
26
|
+
- cell_content = cell.content
|
27
|
+
*{:tag=>(tblsec == :head ? 'th' : 'td'), :class=>['tableblock',"halign-#{cell.attr :halign}","valign-#{cell.attr :valign}"],
|
28
|
+
:colspan=>cell.colspan, :rowspan=>cell.rowspan,
|
29
|
+
:style=>((@document.attr? :cellbgcolor) ? %(background-color:#{@document.attr :cellbgcolor};) : nil)}
|
30
|
+
- if tblsec == :head
|
31
|
+
=cell_content
|
32
|
+
- else
|
33
|
+
- case cell.style
|
34
|
+
- when :asciidoc
|
35
|
+
div=cell_content
|
36
|
+
- when :verse
|
37
|
+
.verse=cell_content
|
38
|
+
- when :literal
|
39
|
+
.literal: pre=cell_content
|
40
|
+
- when :header
|
41
|
+
- cell_content.each do |text|
|
42
|
+
p.tableblock.header=text
|
43
|
+
- else
|
44
|
+
- cell_content.each do |text|
|
45
|
+
p.tableblock=text
|
@@ -0,0 +1,12 @@
|
|
1
|
+
.verseblock id=@id class=role
|
2
|
+
- if title?
|
3
|
+
.title=title
|
4
|
+
pre.content=content
|
5
|
+
- if (attr? :attribution) || (attr? :citetitle)
|
6
|
+
.attribution
|
7
|
+
- if attr? :citetitle
|
8
|
+
cite=attr :citetitle
|
9
|
+
- if attr? :attribution
|
10
|
+
- if attr? :citetitle
|
11
|
+
br
|
12
|
+
| — #{attr :attribution}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
figure
|
2
|
+
video(class=role src=media_uri(attr :target) width=(attr :width) height=(attr :height)
|
3
|
+
poster=(!%(#{poster = attr :poster}).empty? ? media_uri(poster) : nil) autoplay=(option? 'autoplay')
|
4
|
+
controls=!(option? 'nocontrols') loop=(option? 'loop'))
|
5
|
+
|Your browser does not support the video tag.
|
6
|
+
figcaption class=(attr :crole) =captioned_title
|
@@ -0,0 +1,67 @@
|
|
1
|
+
doctype 5
|
2
|
+
/ This should really be a media query in the css
|
3
|
+
html lang=(attr :lang, 'en' unless attr? :nolang) class="aspect-#{attr 'dzslides-aspect', '4-3'}"
|
4
|
+
head
|
5
|
+
meta charset=(attr :encoding)
|
6
|
+
meta name='generator' content="Asciidoctor #{attr 'asciidoctor-version'}, dzslides backend"
|
7
|
+
title=((doctitle :sanitize => true) || (attr 'untitled-label'))
|
8
|
+
- {:description => 'description', :author => 'author', :copyright => 'copyright',
|
9
|
+
:revdate => 'presdate', :corpname => 'company'}.each do |key, name|
|
10
|
+
- if attr? key
|
11
|
+
meta name=name content=(attr key)
|
12
|
+
link rel='stylesheet' href="http://fonts.googleapis.com/css?#{attr 'dzslides-fonts', 'family=Oswald'}"
|
13
|
+
- if attr? :icons, 'font'
|
14
|
+
- if !(attr 'iconfont-remote', '').nil?
|
15
|
+
link rel='stylesheet' href=(attr 'iconfont-cdn', 'http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css')
|
16
|
+
- else
|
17
|
+
link rel='stylesheet' href=normalize_web_path("#{attr 'iconfont-name', 'font-awesome'}.css", (attr :stylesdir, ''))
|
18
|
+
- if attr? 'source-highlighter'
|
19
|
+
link rel='stylesheet' href="./dzslides/themes/highlight/#{attr 'dzslides-highlight', 'default'}.css"
|
20
|
+
link rel='stylesheet' href="./dzslides/themes/style/#{attr 'dzslides-style', 'default'}.css"
|
21
|
+
/FIXME move this CSS into stylesheet
|
22
|
+
style
|
23
|
+
|section:not(.topic) > h2 {
|
24
|
+
| display: none;
|
25
|
+
|}
|
26
|
+
/bug in full screen image if include dzslides.css before ours
|
27
|
+
link rel='stylesheet' href='./dzslides/core/dzslides.css'
|
28
|
+
link rel='stylesheet' href="./dzslides/themes/transition/#{attr 'dzslides-transition', 'horizontal-slide'}.css"
|
29
|
+
- if attr? 'math'
|
30
|
+
script type='text/x-mathjax-config'
|
31
|
+
|MathJax.Hub.Config({
|
32
|
+
tex2jax: {
|
33
|
+
inlineMath: [['\\(','\\)']],
|
34
|
+
displayMath: [['\\[','\\]']],
|
35
|
+
ignoreClass: 'nomath|nolatexmath'
|
36
|
+
},
|
37
|
+
asciimath2jax: {
|
38
|
+
delimiters: [['\\$','\\$']],
|
39
|
+
ignoreClass: 'nomath|noasciimath'
|
40
|
+
}
|
41
|
+
});
|
42
|
+
script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_HTMLorMML'
|
43
|
+
script type='text/javascript'
|
44
|
+
|document.addEventListener('DOMContentLoaded', MathJax.Hub.TypeSet)
|
45
|
+
=docinfo '.html'
|
46
|
+
body id=@id
|
47
|
+
section.title
|
48
|
+
h1=@header.title
|
49
|
+
footer
|
50
|
+
span.author #{attr :author}#{(attr :corpname) && " - #{attr :corpname}"}
|
51
|
+
- if attr? :email
|
52
|
+
'
|
53
|
+
span.email =sub_macros(attr :email)
|
54
|
+
- if (authorcount = (attr :authorcount).to_i) > 1
|
55
|
+
- (2..authorcount).each do |idx|
|
56
|
+
span.divider ·
|
57
|
+
span.author =(attr "author_#{idx}")
|
58
|
+
- if attr? "email_#{idx}"
|
59
|
+
'
|
60
|
+
span.email =sub_macros(attr "email_#{idx}")
|
61
|
+
- if attr? :hashtag
|
62
|
+
span.hashtag=(attr :hashtag)
|
63
|
+
=content
|
64
|
+
script src='./dzslides/core/dzslides.js'
|
65
|
+
- if attr? 'dzslides-highlight'
|
66
|
+
script src='./dzslides/highlight/highlight.pack.js'
|
67
|
+
script hljs.initHighlightingOnLoad()
|
@@ -0,0 +1 @@
|
|
1
|
+
=content
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Add custom functions to this module that you want to use in your Slim
|
2
|
+
# templates. Within the template you must namespace the function
|
3
|
+
# (unless someone can show me how to include them in the evaluation context).
|
4
|
+
# You can change the namespace to whatever you want.
|
5
|
+
module Helpers
|
6
|
+
def self.capture_output(*args, &block)
|
7
|
+
Proc.new { block.call(*args) }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- case @type
|
2
|
+
- when :xref
|
3
|
+
- refid = (attr :refid) || @target
|
4
|
+
a.xref href=@target =(@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')
|
5
|
+
- when :ref
|
6
|
+
a.ref id=@target
|
7
|
+
- when :bibref
|
8
|
+
a.bibref id=@target
|
9
|
+
|[#{@target}]
|
10
|
+
- else
|
11
|
+
a href=@target class=role target=(attr :window) =@text
|
@@ -0,0 +1,6 @@
|
|
1
|
+
- if @type == :xref
|
2
|
+
span.footnoteref
|
3
|
+
| [<a class="footnote" href="#_footnote_#{attr :index}" title="View footnote.">#{attr :index}</a>]
|
4
|
+
- else
|
5
|
+
span.footnote id=("_footnote_#{@id}" if @id)
|
6
|
+
| [<a id="_footnoteref_#{attr :index}" class="footnote" href="#_footnote_#{attr :index}" title="View footnote.">#{attr :index}</a>]
|
@@ -0,0 +1,24 @@
|
|
1
|
+
span class=[@type,role] style=("float: #{attr :float}" if attr? :float)
|
2
|
+
- if @type == 'icon' && (@document.attr? :icons, 'font')
|
3
|
+
- style_class = ["icon-#{@target}"]
|
4
|
+
- style_class << "icon-#{attr :size}" if attr? :size
|
5
|
+
- style_class << "icon-rotate-#{attr :rotate}" if attr? :rotate
|
6
|
+
- style_class << "icon-flip-#{attr :flip}" if attr? :flip
|
7
|
+
- if attr? :link
|
8
|
+
a.image href=(attr :link) target=(attr :window)
|
9
|
+
i class=style_class title=(attr :title)
|
10
|
+
- else
|
11
|
+
i class=style_class title=(attr :title)
|
12
|
+
- elsif @type == 'icon' && !(@document.attr? :icons)
|
13
|
+
- if attr? :link
|
14
|
+
a.image href=(attr :link) target=(attr :window)
|
15
|
+
|[#{attr :alt}]
|
16
|
+
- else
|
17
|
+
|[#{attr :alt}]
|
18
|
+
- else
|
19
|
+
- src = (@type == 'icon' ? (icon_uri @target) : (image_uri @target))
|
20
|
+
- if attr? :link
|
21
|
+
a.image href=(attr :link) target=(attr :window)
|
22
|
+
img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)
|
23
|
+
- else
|
24
|
+
img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
- unless @id.nil?
|
2
|
+
a id=@id
|
3
|
+
- case @type
|
4
|
+
- when :emphasis
|
5
|
+
em class=role =@text
|
6
|
+
- when :strong
|
7
|
+
strong class=role =@text
|
8
|
+
- when :monospaced
|
9
|
+
code class=role =@text
|
10
|
+
- when :superscript
|
11
|
+
sup class=role =@text
|
12
|
+
- when :subscript
|
13
|
+
sub class=role =@text
|
14
|
+
- when :double
|
15
|
+
=role? ? %(<span class="#{role}">“#{@text}”</span>) : %(“#{@text}”)
|
16
|
+
- when :single
|
17
|
+
=role? ? %(<span class="#{role}">‘#{@text}’</span>) : %(‘#{@text}’)
|
18
|
+
- when :asciimath, :latexmath
|
19
|
+
- open, close = ::Asciidoctor::INLINE_MATH_DELIMITERS[@type]
|
20
|
+
|#{open}#{@text}#{close}
|
21
|
+
- else
|
22
|
+
=role? ? %(<span class="#{role}">#{@text}</span>) : @text
|
23
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
.admonitionblock id=@id class=[(attr :name),role]
|
2
|
+
table: tr
|
3
|
+
td.icon
|
4
|
+
- if @document.attr? :icons, 'font'
|
5
|
+
i class=%(icon-#{attr :name}) title=@caption
|
6
|
+
- elsif @document.attr? :icons
|
7
|
+
img src=icon_uri(attr :name) alt=@caption
|
8
|
+
- else
|
9
|
+
.title=@caption
|
10
|
+
td.content
|
11
|
+
- if title?
|
12
|
+
.title=title
|
13
|
+
=content
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.colist id=@id class=[@style,role]
|
2
|
+
- if title?
|
3
|
+
.title=title
|
4
|
+
- if @document.attr? :icons
|
5
|
+
- font_icons = @document.attr? :icons, 'font'
|
6
|
+
table
|
7
|
+
- items.each_with_index do |item, i|
|
8
|
+
- num = i + 1
|
9
|
+
tr
|
10
|
+
td
|
11
|
+
- if font_icons
|
12
|
+
i.conum data-value=num
|
13
|
+
b=num
|
14
|
+
- else
|
15
|
+
img src=icon_uri("callouts/#{num}") alt=num
|
16
|
+
td=item.text
|
17
|
+
- else
|
18
|
+
ol
|
19
|
+
- items.each do |item|
|
20
|
+
li: p=item.text
|
@@ -0,0 +1,53 @@
|
|
1
|
+
- case @style
|
2
|
+
- when 'qanda'
|
3
|
+
.qlist id=@id class=['qanda',role]
|
4
|
+
- if title?
|
5
|
+
.title=title
|
6
|
+
ol
|
7
|
+
- items.each do |questions, answer|
|
8
|
+
li
|
9
|
+
- [*questions].each do |question|
|
10
|
+
p: em=question.text
|
11
|
+
- unless answer.nil?
|
12
|
+
- if answer.text?
|
13
|
+
p=answer.text
|
14
|
+
- if answer.blocks?
|
15
|
+
=answer.content
|
16
|
+
- when 'horizontal'
|
17
|
+
.hdlist id=@id class=role
|
18
|
+
- if title?
|
19
|
+
.title=title
|
20
|
+
table
|
21
|
+
- if (attr? :labelwidth) || (attr? :itemwidth)
|
22
|
+
colgroup
|
23
|
+
col style=((attr? :labelwidth) ? %(width:#{(attr :labelwidth).chomp '%'}%;) : nil)
|
24
|
+
col style=((attr? :itemwidth) ? %(width:#{(attr :itemwidth).chomp '%'}%;) : nil)
|
25
|
+
- items.each do |terms, dd|
|
26
|
+
tr
|
27
|
+
td class=['hdlist1',('strong' if option? 'strong')]
|
28
|
+
- terms = [*terms]
|
29
|
+
- last_term = terms.last
|
30
|
+
- terms.each do |dt|
|
31
|
+
=dt.text
|
32
|
+
- if dt != last_term
|
33
|
+
br
|
34
|
+
td.hdlist2
|
35
|
+
- unless dd.nil?
|
36
|
+
- if dd.text?
|
37
|
+
p=dd.text
|
38
|
+
- if dd.blocks?
|
39
|
+
=dd.content
|
40
|
+
- else
|
41
|
+
.dlist id=@id class=[@style,role]
|
42
|
+
- if title?
|
43
|
+
.title=title
|
44
|
+
dl
|
45
|
+
- items.each do |terms, dd|
|
46
|
+
- [*terms].each do |dt|
|
47
|
+
dt class=('hdlist1' unless @style) =dt.text
|
48
|
+
- unless dd.nil?
|
49
|
+
dd
|
50
|
+
- if dd.text?
|
51
|
+
p=dd.text
|
52
|
+
- if dd.blocks?
|
53
|
+
=dd.content
|