Questions tagged [grunt-assemble]
20 questions
0
votes
1 answer
How to use parameter in assemble partial
How to use parameter in handlebar partial I am using grunt-assemble and cant find anything in docs
For Example I will create a partial name heading and use it in my template
{{heading}}
{{>…
m.zaki
- 57
- 6
0
votes
2 answers
Get current url query string
I'm trying to write a handlebars helper that spits out the current url query string. I will then use that query string to populate a template. I'm using assemble to do the html file generation.
My urls look like this: groups/group-details/?id=1 and…

boz
- 4,891
- 5
- 41
- 68
0
votes
1 answer
Get first item in a sorted collection
Assuming I have something like:
{{#each pageElements}}
{{#is pageElement "news"}}
{{#withSort pages "data.posted" dir="desc"}}
{{formatDate data.posted "%d.%m.%Y"}}: {{data.title}}
…

boz
- 4,891
- 5
- 41
- 68
0
votes
1 answer
How to prefix file names when using grunt assemble
I have returned this question to its original form so that is more readable for future readers.
I have some grunt-assemble tasks in my Gruntfile.js
assemble: {
options: {
flatten: true,
layoutdir:…

Lindsay Macvean
- 248
- 1
- 9
0
votes
1 answer
output directory structure in assemble
I am creating a static site using grunt.js and assemble. I have a data.json file used for building pages using assemble:
{
"articles": [
{
"author": "Brian",
"headline": "A Generation on the Hook 1",
…

Trewq
- 3,187
- 6
- 32
- 50