Replies: 3 comments 3 replies
-
@js2me Sorry for taking so long to respond, but what exactly is the problem with this basic require function? Can you clarify on what exactly is the question you are asking? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @shadowtime2000 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just I want to use require() in ETA templates Hello <%~ require("./currentUser") %> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Firstly, thanks for this powerful tool!
I use ETA template in https://github.com/acacode/swagger-typescript-api
And currently I have a problem with using custom
require()
function inside ETA template__dirname
contains path where placed customrequired()
functionprocess.cwd()
contains path to direction of the called script which use ETA templatesCustom raw implementation of
require()
functionThanks!
Beta Was this translation helpful? Give feedback.
All reactions