as far as a templating engine is concerned; they are the same. EJS has "includes" which is for including another view, or a partial, like if you had a "header" partial. Either way; they are used the same exact way
A partial is a small template that you include in a large one, like: <div class="form-name">{{this.name}}</div> and <div class="form-thingy">{{:partial name this.name}}</div>
A view is a JS class with bindings, behavior, etc, that renders some template into an element.
hey friends, is there a repo out there that provides a common boostrapped setup (as in "already set up" not the UI framework) with a test runner and a bunch of basic stuff common to new projects?
I have a slightly opinion-based question. I need to read data from a database (a list of shapes available for a web-based visio clone). How would you pass the data from PHP to JS? Keep in mind the data only needs to be read once when the app launches and that's it.
Very easy. If the attacker can find any way to access the raw files on your server (ex. Anonymous FTP), they could easily find the password by perusing your source code here. — Quantum1 min ago
@JacqueGoupil if it's high volume, I'd write the data from the DB out to a file system to cache it, ideally serve as static file, that way you avoid the DB hit
@JacqueGoupil really depends on your traffic, amount of data has a lot to do with capacity planning/design, but so does concurrency and counts. The roundtrip and network hops between a DB & web front end can be quite severe in an enterprise environment
Canvas shadow properties seem to affect all paths that follow it, even when closing the path that contains those properties. I tried changing the order of things. Ok, placing a path that doesnt require a shadow before the one that does works, but that isnt very reliable work-around. Is there any ...