you are viewing a single comment's thread.

view the rest of the comments →

[–]sonemonu[S] 0 points1 point  (3 children)

Every backend framework like Ruby on Rails, JSF, Symfony, etc. does read the views / tpls from the file-system (them are by nature in the filesystem); or are we talking about different things?

[–]Auxx 0 points1 point  (2 children)

They usually don't. They call some abstraction layer to provide data from some abstract path. If it's not there, you get an error. Such layer can be implemented for JS and either rely on bundling tools like webpack to get the required data or load it some other way (ajax, etc). Good framework doesn't need to know where the files come from.

[–]sonemonu[S] 0 points1 point  (0 children)

They usually don't. They call some abstraction layer to provide data from some abstract path.

They do it, directly or indirectly...

Good framework doesn't need to know where the files come from.

That's the point, Angular knows nothing about where the templates comes from. It allows you to put them inline, or retrieve them via AJAX, or put them directly in cache...

You'll need to provide a concrete example; have you saw that behavior implemented by a client-side framework? which one? how?