4 ms·
I've been doing database-backed web apps using MVC frameworks for so many years, that it's hard for me to wrap my head around the front-end javascript framework
by jordanlev 11y ago
I've been doing database-backed web apps using MVC frameworks for so many years, that it's hard for me to wrap my head around the front-end javascript frameworks. This one seems simple enough that I might be able to understand it though...
Can you clarify for me, though, how exactly to utilize this in my code? I see the `require` statements, which I'm guessing means you assume the use of browserify or some module loader (or ES6)... but would it be possible to use this just as a plain old javascript file via a `<script src="whatever"></script>` tag?
Also, are there any more fleshed-out examples of how to use this for a realistic app?
Thanks!
- daliwali 11y agowhen installing modules from npm, it's customary to use commonjs and `require` them. or you could simply download the built version, include it as a script tag and use the global `window.simulacra`. I have yet to build a complex app using my own lib, but it's one of the main reasons why I wrote it.
- deleted 11y ago[deleted]
- jordanlev 11y agoAh, gotcha. I didn't notice the download button on your website at first. (You might want to remove the faded style from it -- it looks disabled to me and I think that's why I glossed over it.) Thank you!