How I use js file from edge(template engine)

Hello sirs im newbie adonis user and nodejs beginner.

i have folder structure below


my question is how i use like.js from post.edge

thanks you.

You have to put your css, js files inside your public folder

create your component folder inside public folder and put your like.js inside.

In edge you can user your JS file.
Simply {{ script(‘component/like.js’) }}

1 Like