One additional question: auth.wiki understands a page with some "@{myfunktion:1,2,3}" calls. And I want to include pictures with something like "[[Description @///static/mypicture.png center]]". How can I create a pdf-file using all the @-features?
2015-11-04 15:57 GMT+01:00 Martin Weissenboeck <mweis...@gmail.com>: > Thank you very much - this solves my problem: I want to use these files in > a wiki. > It has not been clear for me whether "@////args" will be resolved first or > "[[...]]". > > 2015-11-04 15:31 GMT+01:00 Massimo Di Pierro <massimo.dipie...@gmail.com>: > >> MARKMIN itself does not mess with paths. It just render the markup to >> HTML. Paths are framework/application/routes dependent therefore there >> cannot be a generic syntax in markmin that works in every case. The same >> problem happens when the hostname changes. >> >> In auth.wiki we solve the problem by allowing this syntax: @////args >> where @[hostname]/[app]/[controller]/[function]/[args] and each part [...] >> can be omitted. if omitted, it is put in by the server when generating the >> response, before markmin is rendered. >> >> >> On Tuesday, 3 November 2015 01:58:46 UTC-6, mweissen wrote: >>> >>> I want to show a picture in a markmin file. >>> This is my markmin text: >>> >>> [[Description /myapp/static/mypicture.png center]] >>> >>> >>> Works fine, but if I want to use the same text in another application I >>> have to change it to >>> >>> >>> [[Description /myotherapp/static/mypicture.png center]] >>> >>> >>> It is possible to use something generic like ./static/mypicture.png ? >>> >>> Regards, Martin >>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.