Skip to content

Instantly share code, notes, and snippets.

@QuingKhaos
Last active November 2, 2016 11:30
Show Gist options
  • Save QuingKhaos/06ea4eda19e4853cfe30567fdecdb70b to your computer and use it in GitHub Desktop.
Save QuingKhaos/06ea4eda19e4853cfe30567fdecdb70b to your computer and use it in GitHub Desktop.
Section template for https://github.com/slara/generator-reveal which allows multiple slides in one markdown file
<% if (!_.isString(slide) && !_.isArray(slide) && _.isObject(slide)) { %>
<section <%= _.map(slide.attr, function (val, attr) {return attr + '="' + val + '"'}).join(' ')%> <% if (_.isString(slide.filename)) { %>data-<% if (slide.filename.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide.filename %>"<% } %>
<% } %><% if (_.isString(slide)) { %>
<section data-<% if (slide.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide %>"
<% } %>
data-separator="^\n\n\n"
data-separator-vertical="^\n\n"
data-separator-notes="^Note:"
></section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment