Comments (6)
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.
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.
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.
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.
@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.
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)
- Line breaks are not formatted properly HOT 16
- angular-template-asset-pipeline 2.0.1 does not appear to be working HOT 14
- Plugin poping errors at runtime HOT 4
- Module name problem on windows HOT 16
- File path tokenize fails with the use of GenericAssetFile HOT 5
- Template file not being added to the cache HOT 7
- Templates do not work in Grails 3 Jar HOT 18
- Allow for module name default HOT 15
- Is it possbile to have multiple template folders? HOT 4
- configOptions take no effect for Grails 3 in build.gradle HOT 3
- Error 500 on generated template js files HOT 3
- Mismatch in path vs cache name HOT 1
- Camel Case HOT 5
- Line ends are broken when template html is minimized for <script> tag HOT 6
- Display issue when using templates HOT 1
- Wrong module name if Grails 3 project name is written with snake case HOT 2
- New properties to add all templates to a single module
- Release 2.4.0 HOT 6
- assets.configOptions.angular is not found when application is run in dev environment (no war)) HOT 1
- CRLF not supported in templates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-template-asset-pipeline.