Comments (3)
The bug appears while using bootstrap 3.3.5 stylesheets. After I have deleted all unnecessary files, everything works fine.
from grain.
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.
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)
- Unable to specify proxy for Downloading SetupTools HOT 2
- NPE when invoking generate HOT 12
- Huge dependency download time and obsolete dependencies HOT 9
- Portability problems HOT 17
- The option to split Yaml & content HOT 3
- Different `index.html` reference in preview and generate HOT 8
- Crash during preview HOT 1
- Cache Busting HOT 2
- `application.properties` should be optional HOT 7
- `page.url` ignores directory in site url
- Injection declared but never used
- Freezes somewhere inside Ruby on generate
- Java 9 compatibility HOT 1
- Display a nice error for commands instead of a stack trace HOT 2
- Dependency problem HOT 2
- Customizing resource mapping to add new binary types HOT 2
- Help to integrate Jekill module to import wordpress sites HOT 2
- allow SiteConfig to specify attributes for Asciidoctor.convert HOT 3
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 grain.