Thanks for the module, Massimo! Unfortunately, it is not working in a test app:
## snip ## $ python web2py.py -P -M -S slides web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.3 (2011-09-26 10:32:57) dev Database drivers available: SQLite3, pymysql Python 2.7.2 (default, Jul 27 2011, 15:07:16) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from applications.slides.modules.slide import SLIDE >>> content = """ ... # My slides title ... ## Slide One ... this allows you to create slides using markmin ... ## Slide Two ... - you can use lists ... - you can use [[links http://www.google.com]] ... - you can use images [[image http://image.example.com center]] ... """ >>> SLIDE(content, title='Sample slide') Traceback (most recent call last): File "<console>", line 1, in <module> File "applications/slides/modules/slide.py", line 46, in SLIDE html = str(MARKMIN(body,extra=extra)) NameError: global name 'MARKMIN' is not defined >>> print MARKMIN(content) <h1>My slides title</h1><h2>Slide One</h2><p>this allows you to create slides using markmin</p><h2>Slide Two</h2><ul><li>you can use lists</ li><li>you can use <img src="http://image.example.com" alt="links <a href="http://www.google.com">http://www.google.com</a>]]</li><li>you can use images [[image" align="center" /></li></ul> ## snap ## What am I doing wrong? :) Greetings, Jan On 10 Sep., 21:24, Massimo Di Pierro <[email protected]> wrote: > Based on desk.js now you can do this > > Put the attached slide.py under models (any app). > > Write a controller like > > def test(): > content = """ > # My slides title > ## Slide One > this allows you to create slides using markmin > ## Slide Two > - you can use lists > - you can use [[linkshttp://www.google.com]] > - you can use images [[imagehttp://image.example.comcenter]] > """ > return SLIDE(content,title="My slides") > > Notice the resulting file is pure html5 with external links therefore it can > be downloaded as an independent document. > > slide.py > 2KAnzeigenHerunterladen

