This repository has been archived by the owner on May 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Path variable inside n:src macro #7
Comments
I have the same issue, do you have any solution? |
so why you not define path before this macro? Something like:
|
Becouse it doesn't work. Maybe I'm doing something wrong. |
As I mentioned before, any variable won't be evaluated. Same for the |
So in this case use template helper: https://github.com/iPublikuj/images/blob/master/src/IPub/Images/Templating/Helpers.php#L102 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, is there any chance how to pass variable with image path into src macro? I am trying to pass
<img n:src="presenter:images://$path, 200x200, fill" />
but$path
variable is not evaluated to variable's value and string '$path' is used instead. Thanks for advice.The text was updated successfully, but these errors were encountered: