Make this my own repo.
Change README.
TODO
Export the Block logic in another file. Using TypeScript.
Fix some html tags. Clean the files to make them more readable. Share the 'public' folder to the browser and fix the not-working load of the css/js.
Export Script and Stylesheet as Classes. Convert layout() as helper in external file. It works fine, tested using the example.
Export block as helper.
Remove my tests, test using the example are better indeed...
What's left needs a lot of refactoring... Probably a specific file, everything is kinda linked together. (cache, ...)
Changed the way to load files from absolute path, better, cleaner too.
Add todo.
Add ext, so it's not required even in absolute path. Remove my change about the key, would mess up the cache actually and not needed anymore . Changed the key to take into account the _basePath if exists to not have duplicated keys.
I've proved that I'm not crazy. ejs-locals does fail to resolve path if the file is loaded using the "include" ejs operator, I didn't understand that before, now I do. I'll never use this shitty stuff anymore, better to use partial() indeed.
Add wrapping attributes for both script and stylesheet functions. Taken at: https://github.com/JohnKimDev/ejs-locals/commit/1e5efc800dd52af652aeed819142ba57494b1332
TODO.
Add new relative path fallback. Taken from https://github.com/nodeform/ejs-blocks/commit/2c5c467c5e1c4303b94da939e69322b31b83e05d
Add fall back for absolute path resolving too, based on the default config or an optional options._basePath attribute.
Comment.
Ensure to find files even if extension is used while calling it.
Missing file.