App-remarkpl

 view release on metacpan or  search on metacpan

script/remarkpl  view on Meta::CPAN

app->defaults(title    => $presentation->basename);
app->start;

sub read_presentation {
  Mojo::Util::decode('UTF-8',
    -e $presentation
    ? $presentation->slurp
    : Mojo::Loader::data_section(__PACKAGE__, $presentation));
}

__DATA__
@@ remarkpl.html.ep
<!DOCTYPE html>
<html>
<head>
  <title><%= title %> - remarkpl</title>
  <meta charset="utf-8">
  %= stylesheet '/fonts.css'
  %= stylesheet '/basic.css'
  %= stylesheet '/custom.css'
</head>
<body>
  <textarea id="source"><%= $presentation %></textarea>
  %= javascript $remarkjs
  %= javascript '/custom.js'
  <script>const slideshow = remark.create();</script>
</body>
</html>
@@ example.markdown
class: center, middle, inverse

# remark presentation example

"class" can be center, middle, bottom, left, center, right, inverse.

---

# Agenda

1. Introduction
2. Deep-dive

<img src="example.jpg" class="h400">

---

# Code

```perl
my $foo = "Code formatting";
```

```
.left[Left-aligned text]
.center[Centered text]
.right[Right-aligned text]
```

---
class: contrast, inverse
background-image: url(example.jpg)

# Lists

- Item 1

- Item 2

  With a paragraph

---
class: center, middle
# The end

[jhthorsen@cpan.org](mailto:jhthorsen@cpan.org)



( run in 1.132 second using v1.01-cache-2.11-cpan-f56aa216473 )