8000 Call function simplest syntax · Issue #148 · feulf/raintpl3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Call function simplest syntax #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nikmauro opened this issue Apr 15, 2014 · 1 comment
Open

Call function simplest syntax #148

nikmauro opened this issue Apr 15, 2014 · 1 comment

Comments

@nikmauro
Copy link

Hello i have the function permalink and i want to call this like the following example

example
a href="{permalink:(1)}">link /a
or
a href="{$permalink:(1)}">link /a

it is possible?

function permalink($id){
     // do something...
     return $id; // return something...
}
@Xesau
Copy link
Xesau commented Dec 31, 2014

When they have added #167, you can use {1|permalink}
If you want a dynamic function call, you can just use a variable:

<a href="{$post_id|permalink}">link</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0