Git Product home page Git Product logo

Comments (3)

altavir avatar altavir commented on July 1, 2024

The bug appears while using bootstrap 3.3.5 stylesheets. After I have deleted all unnecessary files, everything works fine.

from grain.

dmitriypdv avatar dmitriypdv commented on July 1, 2024

The default behavior for Grain is to parse and run embedded Groovy code ${ ... } for all the non-binary template files, this often comes in handy for passing configuration parameters from the page model to javascript or stylesheets. In this case, it looks like Grain finds ${ in the bootstrap files and tries to parse the presumed Groovy code which causes the error.

To disable this you can add the file extension to the list of non-script files in the SiteConfig.groovy:

non_script_files = [/(?i).*\.(js|css)$/]

We are going to add the default configuration in the next revision, so users won't encounter the error after adding third-party files to the project.

from grain.

altavir avatar altavir commented on July 1, 2024

Ok, thank you, I think this solves the problem. By the way, thank you for the great tool. It would be good to have basic JBake-like predefined templates for simple projects.

from grain.

Related Issues (19)

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.