Re: [Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-12 Thread Dotan Dimet
I hesitated to mention my own single-user markdown slideshow app, 
Allenby: https://github.com/dotandimet/Allenby


It has a config file with a list of directories where it looks for talks 
(markdown files + corresponding directories of images)
and designs (various javascript slideshow frameworks with an HTML 
template to put the converted slides in).


In the talks I've given with this, I've mostly used reveal and deck.js. 
I added a few others for experimentation.


It's hard to swap one javascript slideshow app for another, since they 
make strong implicit assumptions about how the different HTML headers 
and other elements should appear. Reveal isn't very forgiving to slides 
with a lot of text, deck.js expects each H1 to be alone on its slide.


I've found that deck.js is the most lenient for different images and 
varied text lengths - the slide will scale to fit in the screen with a 
CSS transform.


- Dotan


On 12/01/17 16:22, Joel Berger wrote:

Reveal does similar things. I considered Remark as well, both are good.

On Thursday, January 12, 2017 at 8:14:49 AM UTC-6, Jan Henning Thorsen 
wrote:


That's one of the things I like about
https://metacpan.org/release/App-remarkpl
, or rather
https://remarkjs.com/ ... It will scale the slide to the screen,
so as long as the presentation fits, it will never scale out. You
still need to set the appropriate font size, but the defaults have
worked out for me.

On Thursday, January 12, 2017 at 2:56:09 PM UTC+1, Joel Berger wrote:

I actually have two others, App::MojoSlides and
Mojolicious::Plugin::SimpleSlides. You might take the
implication of having three though, writing a presentation
system is HARD!

I came to the web having written a lot of LaTeX and so my goal
in my first two was to make something like LaTeX Beamer. I'm
sorry to report that that was mostly a failure. The problem is
with how browsers render fonts and images mostly. If you watch
my MojoConf talk, you'll see me fighting with the text size vs
the screen resolution on the projector that was used. I was
very disappointed because I'm not sure that I was able to
effectively make my point while trying to make the text
readable for the viewers.

After that I gave up and decided to delegate most of the
actual rendering to a library that was dedicated to doing
that, I settled on RevealJS. So now all my (third) system is
is a pre-processor.

Though I haven't gotten around to saying it yet, I consider
App::MojoSlides and Mojolicious::Plugin::SimpleSlides to be
deprecated and/or willing to have adopted. If anyone wants
them, please let me know.

Cheers,
Joel

On Wednesday, January 11, 2017 at 6:37:01 PM UTC-6, mimosinnet
wrote:

Waw! Thanks! I will have a look at it! :D :)  I have also
noticed that you also have App::MojoSlides! Ups... I
should have looked further! =^_^=

I will try the Mojolicious::Plugin::RevealJS and look the
code in App::MojoSlides.

Cheers! :D :)

El dimarts, 10 gener de 2017 16:38:25 UTC+1, Joel Berger
va escriure:

Hi, sorry I've taken this long to respond. I also have
a similar effort, built on RevealJS.
https://metacpan.org/pod/Mojolicious::Plugin::RevealJS

. It is basically a wrapper/preprocessor that helps
building a RevealJS-based talk. Reveal has a markdown
mode, though I usually just use the html form. I don't
mention this to discourage you, just to tell you about
other projects. Good luck!

Cheers,
Joel

On Monday, January 2, 2017 at 7:22:21 PM UTC-6,
mimosinnet wrote:

I have been working this Christmas in an
application to show markdown files as slides:

  * Code in github

  * Slides outline

  * Slides


The markdown is stored
public/md//number_of_presentation/, and the media
for the presentation in
public//number_of_presentation. /Each slide is
saved in a sqlite database, and the first line of
the slide is used as the slide background if it is
an image. I will happily add more documentation
   

[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-12 Thread Joel Berger
Reveal does similar things. I considered Remark as well, both are good.

On Thursday, January 12, 2017 at 8:14:49 AM UTC-6, Jan Henning Thorsen 
wrote:
>
> That's one of the things I like about 
> https://metacpan.org/release/App-remarkpl, or rather https://remarkjs.com/ 
> ... It will scale the slide to the screen, so as long as the presentation 
> fits, it will never scale out. You still need to set the appropriate font 
> size, but the defaults have worked out for me.
>
> On Thursday, January 12, 2017 at 2:56:09 PM UTC+1, Joel Berger wrote:
>>
>> I actually have two others, App::MojoSlides and 
>> Mojolicious::Plugin::SimpleSlides. You might take the implication of having 
>> three though, writing a presentation system is HARD!
>>
>> I came to the web having written a lot of LaTeX and so my goal in my 
>> first two was to make something like LaTeX Beamer. I'm sorry to report that 
>> that was mostly a failure. The problem is with how browsers render fonts 
>> and images mostly. If you watch my MojoConf talk, you'll see me fighting 
>> with the text size vs the screen resolution on the projector that was used. 
>> I was very disappointed because I'm not sure that I was able to effectively 
>> make my point while trying to make the text readable for the viewers.
>>
>> After that I gave up and decided to delegate most of the actual rendering 
>> to a library that was dedicated to doing that, I settled on RevealJS. So 
>> now all my (third) system is is a pre-processor.
>>
>> Though I haven't gotten around to saying it yet, I consider 
>> App::MojoSlides and Mojolicious::Plugin::SimpleSlides to be deprecated 
>> and/or willing to have adopted. If anyone wants them, please let me know.
>>
>> Cheers,
>> Joel
>>
>> On Wednesday, January 11, 2017 at 6:37:01 PM UTC-6, mimosinnet wrote:
>>>
>>> Waw! Thanks! I will have a look at it! :D :)  I have also noticed that 
>>> you also have App::MojoSlides! Ups... I should have looked further! =^_^=
>>>
>>> I will try the Mojolicious::Plugin::RevealJS and look the code 
>>> in App::MojoSlides. 
>>>
>>> Cheers! :D :) 
>>>
>>> El dimarts, 10 gener de 2017 16:38:25 UTC+1, Joel Berger va escriure:

 Hi, sorry I've taken this long to respond. I also have a similar 
 effort, built on RevealJS. 
 https://metacpan.org/pod/Mojolicious::Plugin::RevealJS . It is 
 basically a wrapper/preprocessor that helps building a RevealJS-based 
 talk. 
 Reveal has a markdown mode, though I usually just use the html form. I 
 don't mention this to discourage you, just to tell you about other 
 projects. Good luck!

 Cheers,
 Joel

 On Monday, January 2, 2017 at 7:22:21 PM UTC-6, mimosinnet wrote:
>
> I have been working this Christmas in an application to show markdown 
> files as slides:
>
>- Code in github 
>- Slides outline 
>- Slides 
>
> The markdown is stored public/md/*number_of_presentation*, and the 
> media for the presentation in public/*number_of_presentation. *Each 
> slide is saved in a sqlite database, and the first line of the slide is 
> used as the slide background if it is an image. I will happily add more 
> documentation and include suggestions if considered relevant. 
>
> Long story:
> I have been using *pinpoint*  for 
> my presentations in my work as teacher on psychology. For different 
> reasons 
> (lack of development, availability,...) I started to seek for 
> alternatives, 
> and it seems that html/css/javascript 
>  is 
> the way forward. Unfortunately, as I do not have any 
> javascript/jquery/ajax 
> skills, I have used my limited Perl knowledge to build something with 
> Mojolicious. I have spend this Christmas having fun (an addiction) with 
> web 
> development ;-). I hope this can be useful for other Mojolicious 
> beginners. 
>
> Cheers! 
>


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-11 Thread mimosinnet
Waw! Thanks! I will have a look at it! :D :)  I have also noticed that you 
also have App::MojoSlides! Ups... I should have looked further! =^_^=

I will try the Mojolicious::Plugin::RevealJS and look the code 
in App::MojoSlides. 

Cheers! :D :) 

El dimarts, 10 gener de 2017 16:38:25 UTC+1, Joel Berger va escriure:
>
> Hi, sorry I've taken this long to respond. I also have a similar effort, 
> built on RevealJS. https://metacpan.org/pod/Mojolicious::Plugin::RevealJS 
> . It is basically a wrapper/preprocessor that helps building a 
> RevealJS-based talk. Reveal has a markdown mode, though I usually just use 
> the html form. I don't mention this to discourage you, just to tell you 
> about other projects. Good luck!
>
> Cheers,
> Joel
>
> On Monday, January 2, 2017 at 7:22:21 PM UTC-6, mimosinnet wrote:
>>
>> I have been working this Christmas in an application to show markdown 
>> files as slides:
>>
>>- Code in github 
>>- Slides outline 
>>- Slides 
>>
>> The markdown is stored public/md/*number_of_presentation*, and the media 
>> for the presentation in public/*number_of_presentation. *Each slide is 
>> saved in a sqlite database, and the first line of the slide is used as the 
>> slide background if it is an image. I will happily add more documentation 
>> and include suggestions if considered relevant. 
>>
>> Long story:
>> I have been using *pinpoint*  for 
>> my presentations in my work as teacher on psychology. For different reasons 
>> (lack of development, availability,...) I started to seek for alternatives, 
>> and it seems that html/css/javascript 
>>  is the 
>> way forward. Unfortunately, as I do not have any javascript/jquery/ajax 
>> skills, I have used my limited Perl knowledge to build something with 
>> Mojolicious. I have spend this Christmas having fun (an addiction) with web 
>> development ;-). I hope this can be useful for other Mojolicious beginners. 
>>
>> Cheers! 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-09 Thread mimosinnet
El dilluns, 9 gener de 2017 9:00:20 UTC+1, Jan Henning Thorsen va escriure:
>
> Wow! Thanks for finding bugs. That's a lot more than I expected :) 
> Appreciate it.
>

On the contrary! Thanks for pointing me to your code and letting me learn 
from it! I have have issued a pull request 
 that I believe solves the 
issue ;-). Let me be a  'developer for one day' :D :-).

Cheers!


> On Monday, January 9, 2017 at 8:49:41 AM UTC+1, mimosinnet wrote:
>>
>> Seriously, I learning reading your code. Actually, I am still 
>> understanding the combination of 'grep' and 'map' in getting the @files. 
>> Definitively, I can see the beauty of having the app in one file. 
>> Nevertheless, as I am still in the baby-perl stage and I find easier to 
>> organise the code in a full app and find bugs when displaying the markdown 
>> as slides .   
>>
>> Also, I think I have found a bug. I have created a directory structure:
>> mkdir -p D1/D2/D3/D4
>>
>> If I go to the following url (with chromium and firefox):
>> http://127.0.0.1:3000/D1/D2/D3
>>
>> I get the following link for D4:
>> http://127.0.0.1:3000/D1/D2/D1/D2/D3/D4
>>
>> Nevertheless, if I inspect the html code, it shows as... :O :
>> D4
>>
>> This is solved if instead of:
>> $c->render(template => 'browser', web_dir => $web_dir, files => \@files);
>>
>> We turn the path into an absolute string:
>> $c->render(template => 'browser', web_dir => $web_dir->to_abs_string, 
>> files => \@files);
>>
>> It has taken me a while to find what the issue was as the output of 
>> "$web_dir/$file->[0]" showed the right value. ;-) 
>>
>> Cheers! 
>>
>> El diumenge, 8 gener de 2017 13:14:17 UTC+1, Jan Henning Thorsen va 
>> escriure:
>>>
>>> Thank you for all the kind words! :)
>>>
>>> One of the ideas with my version (or any application that I write) is 
>>> that I want them to be very easy to download/run. That's why I put all the 
>>> code in one file and avoid any use of database access.
>>>
>>> Another thing I could mention, is that I added a quick hack to support 
>>> code formatting using ```perl...```:
>>>
>>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L5
>>> * 
>>> https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L36-L39
>>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L47
>>>
>>>
>>> Please steal anything you find interesting :-)
>>>
>>>
>>> On Sunday, January 8, 2017 at 1:45:13 AM UTC+1, mimosinnet wrote:

 Thanks a lot Jan!

 I have enjoyed your code, discovering I have a lot to learn ;-) It has 
 been very useful seeing your use of Mojo::Path and the way you read files 
 and directories. I will try this in my code. I will also try to understand 
 the more idiomatic parts of your code :D

 Cheers! 

 El dissabte, 7 gener de 2017 15:28:55 UTC+1, Jan Henning Thorsen va 
 escriure:
>
> Hi,
>
> Not sure if this is interesting, but I have a competing project for 
> rendering markdown files. Haven't gotten around to complete it...
>
> https://github.com/jhthorsen/app-mdweb
>
>
> On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:
>>
>> I have been working this Christmas in an application to show markdown 
>> files as slides:
>>
>>- Code in github 
>>- Slides outline 
>>- Slides 
>>
>> The markdown is stored public/md/*number_of_presentation*, and the 
>> media for the presentation in public/*number_of_presentation. *Each 
>> slide is saved in a sqlite database, and the first line of the slide is 
>> used as the slide background if it is an image. I will happily add more 
>> documentation and include suggestions if considered relevant. 
>>
>> Long story:
>> I have been using *pinpoint*  for 
>> my presentations in my work as teacher on psychology. For different 
>> reasons 
>> (lack of development, availability,...) I started to seek for 
>> alternatives, 
>> and it seems that html/css/javascript 
>>  is 
>> the way forward. Unfortunately, as I do not have any 
>> javascript/jquery/ajax 
>> skills, I have used my limited Perl knowledge to build something with 
>> Mojolicious. I have spend this Christmas having fun (an addiction) with 
>> web 
>> development ;-). I hope this can be useful for other Mojolicious 
>> beginners. 
>>
>> Cheers! 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 

[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-09 Thread mimosinnet
Mmm I have just noticed that passing $web_dir->to_abs_string does not 
work on the /home/$user directory :O

El dilluns, 9 gener de 2017 8:49:41 UTC+1, mimosinnet va escriure:
>
> Seriously, I learning reading your code. Actually, I am still 
> understanding the combination of 'grep' and 'map' in getting the @files. 
> Definitively, I can see the beauty of having the app in one file. 
> Nevertheless, as I am still in the baby-perl stage and I find easier to 
> organise the code in a full app and find bugs when displaying the markdown 
> as slides .   
>
> Also, I think I have found a bug. I have created a directory structure:
> mkdir -p D1/D2/D3/D4
>
> If I go to the following url (with chromium and firefox):
> http://127.0.0.1:3000/D1/D2/D3
>
> I get the following link for D4:
> http://127.0.0.1:3000/D1/D2/D1/D2/D3/D4
>
> Nevertheless, if I inspect the html code, it shows as... :O :
> D4
>
> This is solved if instead of:
> $c->render(template => 'browser', web_dir => $web_dir, files => \@files);
>
> We turn the path into an absolute string:
> $c->render(template => 'browser', web_dir => $web_dir->to_abs_string, 
> files => \@files);
>
> It has taken me a while to find what the issue was as the output of 
> "$web_dir/$file->[0]" showed the right value. ;-) 
>
> Cheers! 
>
> El diumenge, 8 gener de 2017 13:14:17 UTC+1, Jan Henning Thorsen va 
> escriure:
>>
>> Thank you for all the kind words! :)
>>
>> One of the ideas with my version (or any application that I write) is 
>> that I want them to be very easy to download/run. That's why I put all the 
>> code in one file and avoid any use of database access.
>>
>> Another thing I could mention, is that I added a quick hack to support 
>> code formatting using ```perl...```:
>>
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L5
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L36-L39
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L47
>>
>>
>> Please steal anything you find interesting :-)
>>
>>
>> On Sunday, January 8, 2017 at 1:45:13 AM UTC+1, mimosinnet wrote:
>>>
>>> Thanks a lot Jan!
>>>
>>> I have enjoyed your code, discovering I have a lot to learn ;-) It has 
>>> been very useful seeing your use of Mojo::Path and the way you read files 
>>> and directories. I will try this in my code. I will also try to understand 
>>> the more idiomatic parts of your code :D
>>>
>>> Cheers! 
>>>
>>> El dissabte, 7 gener de 2017 15:28:55 UTC+1, Jan Henning Thorsen va 
>>> escriure:

 Hi,

 Not sure if this is interesting, but I have a competing project for 
 rendering markdown files. Haven't gotten around to complete it...

 https://github.com/jhthorsen/app-mdweb


 On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:
>
> I have been working this Christmas in an application to show markdown 
> files as slides:
>
>- Code in github 
>- Slides outline 
>- Slides 
>
> The markdown is stored public/md/*number_of_presentation*, and the 
> media for the presentation in public/*number_of_presentation. *Each 
> slide is saved in a sqlite database, and the first line of the slide is 
> used as the slide background if it is an image. I will happily add more 
> documentation and include suggestions if considered relevant. 
>
> Long story:
> I have been using *pinpoint*  for 
> my presentations in my work as teacher on psychology. For different 
> reasons 
> (lack of development, availability,...) I started to seek for 
> alternatives, 
> and it seems that html/css/javascript 
>  is 
> the way forward. Unfortunately, as I do not have any 
> javascript/jquery/ajax 
> skills, I have used my limited Perl knowledge to build something with 
> Mojolicious. I have spend this Christmas having fun (an addiction) with 
> web 
> development ;-). I hope this can be useful for other Mojolicious 
> beginners. 
>
> Cheers! 
>


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-09 Thread Jan Henning Thorsen
Wow! Thanks for finding bugs. That's a lot more than I expected :) 
Appreciate it.


On Monday, January 9, 2017 at 8:49:41 AM UTC+1, mimosinnet wrote:
>
> Seriously, I learning reading your code. Actually, I am still 
> understanding the combination of 'grep' and 'map' in getting the @files. 
> Definitively, I can see the beauty of having the app in one file. 
> Nevertheless, as I am still in the baby-perl stage and I find easier to 
> organise the code in a full app and find bugs when displaying the markdown 
> as slides .   
>
> Also, I think I have found a bug. I have created a directory structure:
> mkdir -p D1/D2/D3/D4
>
> If I go to the following url (with chromium and firefox):
> http://127.0.0.1:3000/D1/D2/D3
>
> I get the following link for D4:
> http://127.0.0.1:3000/D1/D2/D1/D2/D3/D4
>
> Nevertheless, if I inspect the html code, it shows as... :O :
> D4
>
> This is solved if instead of:
> $c->render(template => 'browser', web_dir => $web_dir, files => \@files);
>
> We turn the path into an absolute string:
> $c->render(template => 'browser', web_dir => $web_dir->to_abs_string, 
> files => \@files);
>
> It has taken me a while to find what the issue was as the output of 
> "$web_dir/$file->[0]" showed the right value. ;-) 
>
> Cheers! 
>
> El diumenge, 8 gener de 2017 13:14:17 UTC+1, Jan Henning Thorsen va 
> escriure:
>>
>> Thank you for all the kind words! :)
>>
>> One of the ideas with my version (or any application that I write) is 
>> that I want them to be very easy to download/run. That's why I put all the 
>> code in one file and avoid any use of database access.
>>
>> Another thing I could mention, is that I added a quick hack to support 
>> code formatting using ```perl...```:
>>
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L5
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L36-L39
>> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L47
>>
>>
>> Please steal anything you find interesting :-)
>>
>>
>> On Sunday, January 8, 2017 at 1:45:13 AM UTC+1, mimosinnet wrote:
>>>
>>> Thanks a lot Jan!
>>>
>>> I have enjoyed your code, discovering I have a lot to learn ;-) It has 
>>> been very useful seeing your use of Mojo::Path and the way you read files 
>>> and directories. I will try this in my code. I will also try to understand 
>>> the more idiomatic parts of your code :D
>>>
>>> Cheers! 
>>>
>>> El dissabte, 7 gener de 2017 15:28:55 UTC+1, Jan Henning Thorsen va 
>>> escriure:

 Hi,

 Not sure if this is interesting, but I have a competing project for 
 rendering markdown files. Haven't gotten around to complete it...

 https://github.com/jhthorsen/app-mdweb


 On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:
>
> I have been working this Christmas in an application to show markdown 
> files as slides:
>
>- Code in github 
>- Slides outline 
>- Slides 
>
> The markdown is stored public/md/*number_of_presentation*, and the 
> media for the presentation in public/*number_of_presentation. *Each 
> slide is saved in a sqlite database, and the first line of the slide is 
> used as the slide background if it is an image. I will happily add more 
> documentation and include suggestions if considered relevant. 
>
> Long story:
> I have been using *pinpoint*  for 
> my presentations in my work as teacher on psychology. For different 
> reasons 
> (lack of development, availability,...) I started to seek for 
> alternatives, 
> and it seems that html/css/javascript 
>  is 
> the way forward. Unfortunately, as I do not have any 
> javascript/jquery/ajax 
> skills, I have used my limited Perl knowledge to build something with 
> Mojolicious. I have spend this Christmas having fun (an addiction) with 
> web 
> development ;-). I hope this can be useful for other Mojolicious 
> beginners. 
>
> Cheers! 
>


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-08 Thread mimosinnet
Seriously, I learning reading your code. Actually, I am still understanding 
the combination of 'grep' and 'map' in getting the @files. Definitively, I 
can see the beauty of having the app in one file. Nevertheless, as I am 
still in the baby-perl stage and I find easier to organise the code in a 
full app and find bugs when displaying the markdown as slides 
.   

Also, I think I have found a bug. I have created a directory structure:
mkdir -p D1/D2/D3/D4

If I go to the following url (with chromium and firefox):
http://127.0.0.1:3000/D1/D2/D3

I get the following link for D4:
http://127.0.0.1:3000/D1/D2/D1/D2/D3/D4

Nevertheless, if I inspect the html code, it shows as... :O :
D4

This is solved if instead of:
$c->render(template => 'browser', web_dir => $web_dir, files => \@files);

We turn the path into an absolute string:
$c->render(template => 'browser', web_dir => $web_dir->to_abs_string, files 
=> \@files);

It has taken me a while to find what the issue was as the output of 
"$web_dir/$file->[0]" showed the right value. ;-) 

Cheers! 

El diumenge, 8 gener de 2017 13:14:17 UTC+1, Jan Henning Thorsen va 
escriure:
>
> Thank you for all the kind words! :)
>
> One of the ideas with my version (or any application that I write) is that 
> I want them to be very easy to download/run. That's why I put all the code 
> in one file and avoid any use of database access.
>
> Another thing I could mention, is that I added a quick hack to support 
> code formatting using ```perl...```:
>
> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L5
> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L36-L39
> * https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L47
>
>
> Please steal anything you find interesting :-)
>
>
> On Sunday, January 8, 2017 at 1:45:13 AM UTC+1, mimosinnet wrote:
>>
>> Thanks a lot Jan!
>>
>> I have enjoyed your code, discovering I have a lot to learn ;-) It has 
>> been very useful seeing your use of Mojo::Path and the way you read files 
>> and directories. I will try this in my code. I will also try to understand 
>> the more idiomatic parts of your code :D
>>
>> Cheers! 
>>
>> El dissabte, 7 gener de 2017 15:28:55 UTC+1, Jan Henning Thorsen va 
>> escriure:
>>>
>>> Hi,
>>>
>>> Not sure if this is interesting, but I have a competing project for 
>>> rendering markdown files. Haven't gotten around to complete it...
>>>
>>> https://github.com/jhthorsen/app-mdweb
>>>
>>>
>>> On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:

 I have been working this Christmas in an application to show markdown 
 files as slides:

- Code in github 
- Slides outline 
- Slides 

 The markdown is stored public/md/*number_of_presentation*, and the 
 media for the presentation in public/*number_of_presentation. *Each 
 slide is saved in a sqlite database, and the first line of the slide is 
 used as the slide background if it is an image. I will happily add more 
 documentation and include suggestions if considered relevant. 

 Long story:
 I have been using *pinpoint*  for 
 my presentations in my work as teacher on psychology. For different 
 reasons 
 (lack of development, availability,...) I started to seek for 
 alternatives, 
 and it seems that html/css/javascript 
  is 
 the way forward. Unfortunately, as I do not have any 
 javascript/jquery/ajax 
 skills, I have used my limited Perl knowledge to build something with 
 Mojolicious. I have spend this Christmas having fun (an addiction) with 
 web 
 development ;-). I hope this can be useful for other Mojolicious 
 beginners. 

 Cheers! 

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-08 Thread Jan Henning Thorsen
Thank you for all the kind words! :)

One of the ideas with my version (or any application that I write) is that 
I want them to be very easy to download/run. That's why I put all the code 
in one file and avoid any use of database access.

Another thing I could mention, is that I added a quick hack to support code 
formatting using ```perl...```:

* https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L5
* https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L36-L39
* https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb#L47


Please steal anything you find interesting :-)


On Sunday, January 8, 2017 at 1:45:13 AM UTC+1, mimosinnet wrote:
>
> Thanks a lot Jan!
>
> I have enjoyed your code, discovering I have a lot to learn ;-) It has 
> been very useful seeing your use of Mojo::Path and the way you read files 
> and directories. I will try this in my code. I will also try to understand 
> the more idiomatic parts of your code :D
>
> Cheers! 
>
> El dissabte, 7 gener de 2017 15:28:55 UTC+1, Jan Henning Thorsen va 
> escriure:
>>
>> Hi,
>>
>> Not sure if this is interesting, but I have a competing project for 
>> rendering markdown files. Haven't gotten around to complete it...
>>
>> https://github.com/jhthorsen/app-mdweb
>>
>>
>> On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:
>>>
>>> I have been working this Christmas in an application to show markdown 
>>> files as slides:
>>>
>>>- Code in github 
>>>- Slides outline 
>>>- Slides 
>>>
>>> The markdown is stored public/md/*number_of_presentation*, and the 
>>> media for the presentation in public/*number_of_presentation. *Each 
>>> slide is saved in a sqlite database, and the first line of the slide is 
>>> used as the slide background if it is an image. I will happily add more 
>>> documentation and include suggestions if considered relevant. 
>>>
>>> Long story:
>>> I have been using *pinpoint*  for 
>>> my presentations in my work as teacher on psychology. For different reasons 
>>> (lack of development, availability,...) I started to seek for alternatives, 
>>> and it seems that html/css/javascript 
>>>  is the 
>>> way forward. Unfortunately, as I do not have any javascript/jquery/ajax 
>>> skills, I have used my limited Perl knowledge to build something with 
>>> Mojolicious. I have spend this Christmas having fun (an addiction) with web 
>>> development ;-). I hope this can be useful for other Mojolicious beginners. 
>>>
>>> Cheers! 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojolicious application to show markdown as slides

2017-01-07 Thread Jan Henning Thorsen
Hi,

Not sure if this is interesting, but I have a competing project for 
rendering markdown files. Haven't gotten around to complete it...

https://github.com/jhthorsen/app-mdweb


On Tuesday, January 3, 2017 at 2:22:21 AM UTC+1, mimosinnet wrote:
>
> I have been working this Christmas in an application to show markdown 
> files as slides:
>
>- Code in github 
>- Slides outline 
>- Slides 
>
> The markdown is stored public/md/*number_of_presentation*, and the media 
> for the presentation in public/*number_of_presentation. *Each slide is 
> saved in a sqlite database, and the first line of the slide is used as the 
> slide background if it is an image. I will happily add more documentation 
> and include suggestions if considered relevant. 
>
> Long story:
> I have been using *pinpoint*  for 
> my presentations in my work as teacher on psychology. For different reasons 
> (lack of development, availability,...) I started to seek for alternatives, 
> and it seems that html/css/javascript 
>  is the 
> way forward. Unfortunately, as I do not have any javascript/jquery/ajax 
> skills, I have used my limited Perl knowledge to build something with 
> Mojolicious. I have spend this Christmas having fun (an addiction) with web 
> development ;-). I hope this can be useful for other Mojolicious beginners. 
>
> Cheers! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.