Well, based on how the question points are posed, it doesn't sound like you quite have a grasp of angular, but I will offer some direction.
- First, go through the main tutorial if you have not done so: http://docs.angularjs.org/tutorial - Used as a single page app, angular uses partials when switching views that are retrieved via XHR not via RESTful API. To do this, review the use of ng-router and ng-view. One you've set up your routes via $routeProvider, then angular will handle loading the different views. If you need nested views and "states" then you might look into to ui-router. http://scotch.io/tutorials/javascript/single-page-apps-with-angularjs-routing-and-templating https://github.com/angular-ui/ui-router - Using less/compass is no problem, but irrelevant to angular really. - Instead of sending viewport size to your api, I'd recommend reading up on css media queries or simply loading a different index.html file based on the device requesting the page. Personally, I do not know of any CMS's using angular. The server is agnostic, so it does not really matter, but there are some good seeds to start with based on using NodeJs. Here's a link I found that list a few: http://www.jquery4u.com/angular-js/5-angular-js-seeds-bootstrap-apps/ Good luck! On Monday, March 17, 2014 2:55:33 PM UTC-6, Iain Duncan wrote: > > Hi folks, I'm planning on using Angular for a lightweight responsive CMS > in which content is grabbed from a ReST service, likely implemented in > Flask or Pyramid. What I want to do specifically is: > > - use Less/Compass/Susy on the front end > - have Angular get page content via rest queries > - have Angular sent the current viewport/display size to the back end with > the content queries so the backend can optionally return different content > for the phone factor > > Before reinventing the wheel I thought I'd ask if there is already a > common documented way of doing this. Pointers to online resources welcome > too. > > Also would be interested in pointers to any CMS projects for doing that. I > normally use Python but would be interested in being able to backend with > Ruby (or even PHP) as well in case I can't sell the client on being able to > host Python. > > thanks! > Iain > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
