Add Path variable
amauryfischer opened this issue · comments
just being able to access to {{path}} would be awesome ! :)
Hi,
which path do you want {{path}} to return?
absolute project root path, template file path, or some relative path?
I guess template file path would be better.
My goal is to get the file path, and make some operation on the string to create a variable.
i would like to create in my file app/src/folder/component.jsx
a string like this : string = "src:folder:component".
So i need the path, and then to operate a few string operations, which i don't know for now if i will be able to perform with the template syntax^^