derekbrokeit / hyde-presenter

A simple template for building complex, variable structured websites such as presentations or others.
0 stars 0 forks source link

Consider `before` and `after` configs #20

Open derekbrokeit opened 11 years ago

derekbrokeit commented 11 years ago

the config could look like this:

presenter:
    slideshow:
        outer_element: div
        element: figure
        after:
            element: figcaption
         before:
             element: h5

You could then translate some single-line to the before/after section:

∂∂ slideshow
………………
å This is the after text
The after-text will show up after this and before text comes ... before
ß This is before-text
………………
∂∂ /slideshow

translates to:

<div id="slideshow">
<figure>
<h5>This is before-text</h5>
The after-text will show up after this and before text comes ... before
<figcaption>This is the after text</figcaption>
</figure>
</div>
derekbrokeit commented 11 years ago

My personal favorite idea:

presenter:
    impress:
        before:
            element: header
        after:
            element: footer
derekbrokeit commented 11 years ago

Actually footer is not a great idea because markdown will already add this if the markdown extension for footer is being used. I suppose that is best left up to the filter.