Skip to content

Multislide alternate way to create slides

jest edited this page Jan 23, 2012 · 11 revisions

There is an alternate way to make slides creation easy (which I remember I saw in some other software, maybe takahashi.js):

<div class="multislide">
Slide 1 text
// Comments are ignored
\----
Slide 2 text
 package Sometimes;
 extends Never;

 use Moose;
\----
Another slide
* an
* unordered
* list
\----
# an
# ordered
# list
</div>

In practice, the following should apply

  • Wrap all "lone" rows in <p>
  • Treat everything which begins with 4 spaces or 1 tab as code
  • Everything which begins with *+space becomes part of an UL
  • Everything which begins with #+space becomes part of an OL
  • Still allow HTML tags if one wants to use them

Multislide DIVs are pre-processed and converted into slide DIVs, thus allowing the usage of both types in the same presentation if one really wants.

As a future expansion we could also allow a simpler syntax (using \s* and \s# for instance) for unordered and ordered lists.

Clone this wiki locally