Giter Site home page Giter Site logo

Comments (6)

craigburke avatar craigburke commented on July 20, 2024

Hi @havv,

This plugin isn't released yet, but I definitely appreciate the feedback.

So your situation is that you use gsp to generate your angular views, is that right?

Would you mind providing a simple example project so I can see if it's something I can work into my project.

Craig

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Re-reading this, and clearly I missed the fact that this was a question and not a bug report. Sorry about that :)

Without knowing more about your requirements, option #1 seems best to me. That's how I'm tending to use it. Each section of my application resembles a single page angular app with an index.gsp file being the entry point.

Let me know if that answers your question, or if you had any suggestions on how to better handle this.

from angular-template-asset-pipeline.

havenchyk avatar havenchyk commented on July 20, 2024

Hello @craigburke, thanks for your reponse.

I haven't any requirements except supporting multiple languages. For now I use gsp for templating and allow grails to handle internationalization via messages.properties and locales.

E.g. for every template I use in angular just path without .html and in grails I use controller for rendering of every template. With this approach it's hard to use directives (controller for views will contain a lot of actions for every template).

I would like to move away from this approach to html templates and use html for templating.

For now I have the only application (grails application), which handles client and server side and mix server side templates.

I also would like to know your thoughts about separating to client side application (angularjs with grunt-build) and deploying it to e.g. apache and grails for rest calls.
And I don't know, how to make i18n supporting in a separate client side application, like in grails via messages.

Could you share your experiense, as an expert in grails and angularjs?

Sorry for buzzing.
Best regards,
Vladimir

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

I don't consider myself an expert in grails or angular, merely an enthusiastic user of both :)

While I haven't dealt with internationalization much myself, angular's i18n module seems pretty limited (dates and currency, etc).

I probably wouldn't go the separate template route myself, but would handle your text as data. So you could use ng-bind to display different properties like this:

<h1 ng-bind="messages.title"></h1>

You could even parse out the different messages.properties files in Grails and returning them as JSON to be consumed by your angular controller.

That's just a suggestion. Like I said, it's not something I've dealt with myself, but I'd love to hear if something like that ends up working for you.

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

@havv I don't know if you've already seen this, but it looks promising for your particular problem:
http://angular-translate.github.io/

from angular-template-asset-pipeline.

havenchyk avatar havenchyk commented on July 20, 2024

Thanks for your reply, yeah, I've seen angular translate, but never used it.
I'm also not an expert in angular :)
04 июня 2014 г. 4:50 пользователь "Craig Burke" [email protected]
написал:

@havv https://github.com/havv I don't know if you've already seen this,
but it looks promising for your particular problem:
http://angular-translate.github.io/


Reply to this email directly or view it on GitHub
#1 (comment)
.

from angular-template-asset-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.