Giter Site home page Giter Site logo

Comments (16)

craigburke avatar craigburke commented on July 20, 2024

Yeah I'm betting that you're right. I'll take a look.

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Give version 2.0.4 a try. It should fix your issue.

from angular-template-asset-pipeline.

asteria277 avatar asteria277 commented on July 20, 2024

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.

craigburke avatar craigburke commented on July 20, 2024

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.

asteria277 avatar asteria277 commented on July 20, 2024

Thank you.
I will test the new version as soon as it is available.

from angular-template-asset-pipeline.

dmahapatro avatar dmahapatro commented on July 20, 2024

@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.

craigburke avatar craigburke commented on July 20, 2024

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.

dmahapatro avatar dmahapatro commented on July 20, 2024

@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.

craigburke avatar craigburke commented on July 20, 2024

@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.

craigburke avatar craigburke commented on July 20, 2024

Alright version 2.0.5 with @dmahapatro's PR is now live. @asteria277 does this resolve your issue?

from angular-template-asset-pipeline.

dmahapatro avatar dmahapatro commented on July 20, 2024

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.

craigburke avatar craigburke commented on July 20, 2024

@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.

asteria277 avatar asteria277 commented on July 20, 2024

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.

craigburke avatar craigburke commented on July 20, 2024

@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.

asteria277 avatar asteria277 commented on July 20, 2024

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.

craigburke avatar craigburke commented on July 20, 2024

@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)

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.