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 <http://presentacions.mimosinnet.org/presenta/01/1>.   
>
> 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 :
> <a href="D1/D2/D3/D4">D4</a>
>
> 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 <https://github.com/mimosinnet/presentation>
>>>>>    - Slides outline <http://presentacions.mimosinnet.org/diapos/01>
>>>>>    - Slides <http://presentacions.mimosinnet.org/presenta/01/1>
>>>>>    
>>>>> 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*  <https://wiki.gnome.org/Apps/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 
>>>>> <http://bashooka.com/coding/html-css-based-presentation-slides/> 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.

Reply via email to