The Clearlink build process. Compiles all of our source markup and provides a great development experience. There's a lot that Marla can do, including:
Compiling your markup
Compiles and lints all of your source markup files to help us write consistently across the team.
- Handlebars is compiled out to flat `.php` files.
- Sass/Scss is compiled out to CSS and utilizes PostCSS for additional adjustments.
- Javascript is bundled with Webpack.
- Images are all minified accordingly.
Working with JSON and Frontmatter
JSON files live in the `_src/data` directory. You can create as many files here as you want, and any page in your project can pull the content from them.
Your files can also have "local" data via YAML frontmatter at the top of each file. This can only be pulled in on the current page, or any partials that are being extended.
- This is coming from the `_src/markup/_data/site.json` file.
- This is coming from the `_src/markup/index.hbs` frontmatter
130+ Handlebars helpers included
Marla now ships with the handlebars-helpers library that's used in Assemble.io. This library is massive and should have an existing helper for any needs you may have. If not, you can always create your own Helpers to utilize. Here's a few examples:
- 4 + 8 = 12
- thisStringWillBeCamelcase
- this will be lowercase
- This-will-hyphenate-your-strings.
- this-uses-two-different-helpers-to-create-a-url-friendly-string
- This%20will%20encode%20your%20string%20to%20URI
Highly Configurable
Marla's configuration is flexible and simple to use. There are separate objects set up for each task.
Marla's Configuration covers all of the available options you have.