Questions tagged [grunt-assemble]
20 questions
9
votes
2 answers
Paths of the generated pages with assemble
I am struggling with the grunt-assemble grunt task configuration which looks like this:
assemble: {
options: {
flatten: false,
expand: true,
assets: '',
layout: 'default.hbs',
layoutdir: 'templates/layouts',
partials:…

zeropaper
- 574
- 6
- 21
8
votes
1 answer
How to use assemble-middleware-i18n?
I am checking this plugin for localisation, but how should I use it after I have included it in my gruntfile.js?
it seemed there are some example usage here

Blake
- 7,367
- 19
- 54
- 80
5
votes
1 answer
How to include different content partials with Assemble based on dev/build context?
I've jumped into assemble/Grunt to try and improve my workflow for creating templates for the CMS I use. What I'm trying to figure out: is it possible to use a block/partial of HTML content in my template while developing (ie, during "grunt watch"),…

michaelroper
- 293
- 1
- 6
4
votes
1 answer
Assemble: register handlebar helper function
I'm using assemble 0.4.17 which has bundled handlebar 1.3.0.
I'm trying to add a custom handlebar helper as documented here.
So I added this to my Gruntfile (at the bottom of the file, outside of module.exports = function(grunt)…

hansaplast
- 11,007
- 2
- 61
- 75
3
votes
1 answer
Register Assemble Handlebars Helpers
I am trying to do something that seems relatively simple from the Assemble docs and other repos I've looked at but for some reason I'm having a problem registering my Handlebars helpers. The helper is in helpers >…

dtothefp
- 1,364
- 1
- 16
- 22
3
votes
1 answer
Looping through subdirectories in yeoman and assemble
I'm very new at Yeoman and Assemble and I'm trying to build a navigation structure with subdirectories. I can loop through the main pages within the templates/pages directory with this:
{{#each pages}}

leecsargent
- 151
- 1
- 1
- 11
3
votes
1 answer
Mixing dynamic/precompiled handlebar templates using assemble
I'm using Grunt and Assemble to create precompiled templates on my site but I need to dynamically create some sections based on information stored in client-side storage. Is there a way to exempt sections of a template from precompilation?

Indolering
- 3,058
- 30
- 45
2
votes
0 answers
How can I use a collection list outside its parent in another collection in assemble?
Trying to use a collection inside another directory is proving difficult.
Main collection dir:
/src/templates/roles/one.hbs
Etc etc
Then in my main pages dir:
/src/templates/pages/roles.hbs
I am trying to use a collection list inside the above…

M dunbavan
- 1,157
- 5
- 22
- 57
2
votes
1 answer
Assemble (templates): Get parent value from within nested each block
I have a problem getting a value from a parent loop/each. How can I do this?
I'm looping through some questions, and then loop through some answers. On each answer I would like to add the question ID..
The JSON:
{
"questions": [
{
…

curly_brackets
- 5,491
- 15
- 58
- 102
2
votes
1 answer
Writing a partial name in the DOM with Handlebars/assemble
I want to write an HTML comment before and after each partial, with the path or name of the partial, to the guys who shall implement it.
I can get the path and filename of the page, but not the partial. Do you know how?

curly_brackets
- 5,491
- 15
- 58
- 102
1
vote
1 answer
How to use custom option form grunt task in loops
I am using grunt-assemble, in grunt task I add custom option of language by following below documentation
assemble docs
and below is the image of my grunt task
grunt task
{{language}}
{{#withSort pages "data.navSortOrder"}}
{{langugae}}
{{#is…

m.zaki
- 57
- 6
1
vote
1 answer
grunt assemble multiple files from one datafile
I am trying to assemble multiple files using one template and one data file
data.json
{
"site": {
"title": "A Blog",
"author": "Jon Schlinkert"
},
"pages": [
{
"metadata": {
"title": "Blog Post #1",
"summary":…

Lindsay Macvean
- 248
- 1
- 9
1
vote
4 answers
Assemble - How do I limit a collect to display X posts?
Details:
Assemble: 0.4.4
Grunt: 0.4.1
Question:
I'm designing a blog where I want to put 5 of the most recent posts on the front page. I've created a collection for my posts based on keywords:
assemble: {
options: {
flatten: false,
…

Bobby Tuck
- 51
- 1
- 4
1
vote
1 answer
grunt assemble error _config.yml file not generated?
I'm working to try to install the boilerplate-bootstrap example in a effort to learn/play around with assemble. The example fails for me after I try to run grunt saying to please run bower install before continuing. Looking in the Gruntfile.js, I…

ngriffin
- 327
- 4
- 11
1
vote
1 answer
Yeoman Webapp in combination with Assemble
I'm trying to get the default Yeoman Webapp to work with Assemble.io.
I followed this tutorial Using assemble.io with yeoman.io’s webapp Gruntfile
Got it up & running (partially), the first problem I have is that livereload isn't kicking in when…

Think Graphical
- 351
- 1
- 11