Thanks!

But... then is no way to escape the markmin in the wiki pages to embed some 
python code or javascript?

Now I'm thinking for example to load some google chart images (javascript). 
Perhaps I shouldn't wikify my app and remain in multiple views, so they 
allow everything. However, I'd lose the management ease of such pages.


El miércoles, 17 de julio de 2013 21:49:19 UTC+2, dhmorgan escribió:
>
> you can, in your controller, call auth.wiki() with your needed variables:
>
>     return auth.wiki(env=dict(host=lambda h:request.env.http_host,islocal= 
> lambda l:request.is_local)
>
> and in the wiki page body, use @{host:} to construct your link:
>
>     [[ @{host:/someapp/some/path} ]]
>
> this works for me, though I'd like to be able to do the same with 
> wiki-menu; even though the above example renders correctly in wiki-menu's 
> page view, it gets mangled in the drop-down menu itself.
>
>
> On Wednesday, July 17, 2013 6:40:29 AM UTC-5, peibol wrote:
>>
>> Hi there, simple question... I'd like to embed links inside the wiki 
>> pages to some views of my application. Is it possible to use some kind of 
>> helper, or to embed python expressions in {{}} in order to avoid writing 
>> absolute urls (which are different in localhost development and maybe 
>> dependent of deployment)
>> Thanks
>> Pablo
>>
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to