Login  Register

Question : Relation between Document and Section blocks (slideshow)

Posted by ch007m on Mar 06, 2014; 12:27pm
URL: https://discuss.asciidoctor.org/Question-Relation-between-Document-and-Section-blocks-slideshow-tp1584.html

Hi,

What is the relation between a block document (document.html.slim) and section (section.html.slim)? Do we have a one to one relation or 1 to many ? I suppose that the response is YES (one to many)

Why this question ? When we generate a slideshow (Revealjs, DeckJS, ...) the HTML generated is a collection of slides which are in fact a collection of <section id=""></section> blocks. That means that for each title (level 2), the section block of slim (or haml, ...) is called (yes or no) ? If this assertion is true, how can we manage by example to display a title or not for a specific slide when the asciidoc file looks like that

:data-uri:
:icons: font
:last-update-label!:
:source-highlighter: coderay

== Title 2

text of slide 2 - title should be displayed

[notitle: true]
== Title 3

text of slide 3 - title should not be displayed

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard