squirrellyjs / squirrelly

Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript ⛺
https://squirrelly.js.org
MIT License
571 stars 81 forks source link

Update Container.ts to be more testable #205

Closed jmclean-cnexus closed 3 years ago

jmclean-cnexus commented 3 years ago

Break out the container.ts code so utility functions are imported, and can be tested in isolation. Added some more unit tests for the low hanging fruit utility functions

jmclean-cnexus commented 3 years ago

Figure if im going to be a contributor to the package, i should at least contribute more than a one line typing change :)

nebrelbug commented 3 years ago

@jmclean-cnexus this is great! Moving the utility functions into a separate file really helps with reducing complexity.

nebrelbug commented 3 years ago

@jmclean-cnexus perfect! I'll merge and release a new version on npm this evening after I get back from work.

Thanks again! :smile:

nebrelbug commented 3 years ago

@jmclean-cnexus just merged and published as version 8.0.8 :rocket: