I'm creating a custom tag to insert a more advanced image html code in a post. 

I cannot find a way to refer to the post asset folder inside the custom tag.  

In markdown we have the snippet {% asset\_path image\_name %} that retrieve the full path to a post image.  

I would have the same inside custom tag js file.

I've not been able to find something useful in the hexo site documentation.

Any help would be appreciated.

EDIT: after further analysis I've realized there is no way to refer post asset folder in a custom tag, other than passing the post asset path as a function parameter.  

So the new question would be, is it possible to use the {% asset\_path %} tag inside a custom tag snippet, like this {% image\_p 'img\_name.jpg' 'param2' 'param3' 'asset folder tag' %}?

Pietro