Comments (16)
Yeah I'm betting that you're right. I'll take a look.
from angular-template-asset-pipeline.
Give version 2.0.4 a try. It should fix your issue.
from angular-template-asset-pipeline.
Thanks ... but I'm afraid I still have the same problem.
On Windows, both lines returns an array with only one item :
"myApp/appSection/templates/hello.tpl.htm".tokenize(Pattern.quote(File.separator))
"myApp/appSection/templates/hello.tpl.htm".tokenize("")
===> [myApp/appSection/templates/hello.tpl.htm]
I think File.separator shouldn't be used, as the path contained in AssetFile is not a path that follows the current operating system conventions.
from angular-template-asset-pipeline.
Well looks like I might have to fire up a Windows VM for this one. I'll give it anther try.
from angular-template-asset-pipeline.
Thank you.
I will test the new version as soon as it is available.
from angular-template-asset-pipeline.
@craigburke Looks like this PR should solve this issue.
I am also planning to upgrade Groovy version to 2.4.0 and asset pipeline to the latest version. That will be a separate PR and after some exploratory testing.
from angular-template-asset-pipeline.
Thanks a lot @dmahapatro! I really appreciate that 😄
There's no harm in upgrading the version of the asset pipeline core, but I'd like to keep the Groovy version lower for folks using older versions of Grails. Thanks again for the PR!!
from angular-template-asset-pipeline.
@craigburke You are most welcome. Any plans when to release v2.0.5 with this PR. I am planning to migrate a full fledged legacy angular based Grails app from resources to asset-pipeline ( I know it is high time that should have been done earlier, but you know corporate policies :) ).
Now there is no excuse if we want to upgrade to Grails 3, I have to use asset-pipeline. :)
I wanted to ask a question related to this plugin.
Why *.tpl.html
instead of just *.html
or *.htm
?
Is it because you did not want to put all the html files under templates
in $templateCache
.
from angular-template-asset-pipeline.
@dmahapatro I'll probably cut 2.0.5 sometime Monday (I'll reply to this ticket when I do).
You'll never want to go back to Resources after that. Asset pipeline is awesome! 😀
Your assumption about tpl.html
vs html
is correct. It's also just better to differentiate them as well since otherwise I'd be adding my processor to an already existing asset file type (HtmlAssetFile). This way there's just less chance for surprises.
from angular-template-asset-pipeline.
Alright version 2.0.5 with @dmahapatro's PR is now live. @asteria277 does this resolve your issue?
from angular-template-asset-pipeline.
Awesome. Thank you.
Minor modification in README:
From:
In gradle these settings can be changed in your build.config
To:
In gradle these settings can be changed in your build.gradle
from angular-template-asset-pipeline.
@dmahapatro good catch! I changed it.
I'll wait until I get confirmation from @asteria277 until I close this issue.
from angular-template-asset-pipeline.
I will upgrade my app tomorrow morning at work, I will tell you the results asap.
Thanks already both of you !
from angular-template-asset-pipeline.
@asteria277 when you do, use version 2.0.6 (not 2.0.5). I've confirmed that it works on Windows.
from angular-template-asset-pipeline.
I've tested version 2.0.6 and I it is working for me ! Thanks again.
I just have another issue when building the war on hudson, but I will open another issue on the related git project.
from angular-template-asset-pipeline.
@asteria277 awesome! 😄
@dmahapatro thanks again for helping to point me in the right direction on this. That's much appreciated.
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
- 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.