Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

move templates into partials directory - #6

Open
idflood wants to merge 1 commit into
geekuillaume:masterfrom
idflood:templates-split
Open

move templates into partials directory#6
idflood wants to merge 1 commit into
geekuillaume:masterfrom
idflood:templates-split

Conversation

@idflood

@idflood idflood commented Jul 2, 2013

Copy link
Copy Markdown

Hi,

Your project looks promising : ) I always do backbonejs projects but wanted to play with angularjs. With backbone I like the idea to 'lazy load' template files with requirejs so I wanted to see if something like this was possible with angular. Eventually it has builtin support for this so this was really easy.

@geekuillaume

Copy link
Copy Markdown
Owner

Hi,
I started to do the application that way (with the two views in a specific folder). But this organization implies one XHR request for each page. It more optimized to put them into a script tag and to retrieve the text with a call to the DOM at startup.
Some projects like Grunt allow to compile every template into the index.html. I'm looking into it right now to adapt Freader to this organisation ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants