-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child Pages #6
Comments
I don't think so. But like I mentioned https://github.com/jonschlinkert/gulp-rte might be a good solution here. I know it's one more plugin, but that's the gulp way (just adding mention of this here in case others read here) |
Thanks @jonschlinkert. I will give it a go and post any results here. Thanks again :) |
@jonschlinkert @eikeco any progress on this issue. I've been working a lot on our company website in grunt-assemble and playing around with switching over to Gulp. Seems like multiple gulp.dest is an issue for many plugins. I tried to hack it in the task but resulted in some double compilation and it's not ideal. I'm willing to help on this issue if it's still something you guys are working on.
The result of the above will be a duplication of the index file inside of the nested directory and it's content is the HTML templated twice. |
@jonschlinkert @eikeco anybody out there...Bueller?? |
@dtothefp thanks for the ping! I read this initially on my iphone and forgot to respond when I got to my computer.
yeah, I'd love to hear your thoughts on what the solution might look like. one idea I've considered is creating a plugin that can be used as an alternative to just to make sure I'm clear on what you need, you just want to build to multiple destinations using the same |
... and sorry it took so long to reply! |
@jonschlinkert yes, all I'm looking to do is build multiple destinations using the same Something along the lines of this might be appropriate Creating an object of all paths, passing them through gulp.src and manipulating their paths with gulp-tap PS I'm working with @kylerush at Optimizely implementing Assemble for our new marketing website. We are using the Grunt version heavily now but I wanted to play around with what you guys have in Gulp so far |
Awesome! let us know how we can help. fwiw, if you want to play around with the gulp version, I highly recommend taking a look at assemble v0.6.0 instead - it depends on some of the awesome libs from the fractal team. it's nowhere near production ready, but it's orders of magnitude more powerful (and IMHO, easier to use) than Assemble 0.4.x. Not to mention, although the built-in plugins we're using currently take about 1 second to spin up, after that it's screaming fast. also fwiw, we will be externalizing those plugins, engines, parsers etc. into their own repos - and promoting use of gulp plugins whenever possible. @doowb did some benchmarking with thousands of files that we'll share when we launch. btw, just out of curiosity where is optimizely located? |
@dtothefp did you manage to get any further with this? I have a number of times but can't get my head around it... |
@eikeco sorry I forgot to get back to you. I actually did have time to continue with Gulp Assemble but I did actually just start looking at their v0.6.0 API and CLI. Looks like this would do a lot of what we desire for the multiple destinations, and you could probably just fire up the CLi with Gulp if you wanted. I just sent a message to @jonschlinkert for some example repos as I'd like to start playing around with this. Alternatively, if you still want to try the gulp-assemble route a friend of mine suggested this structure for mulitple dest in gulp http://jsfiddle.net/d4q5h66x/. It's a browserify example but may be pertinent. |
Hey @jonschlinkert, any news on this...? |
@BlueBlau if you want to use gulp, just use |
@dtothefp that's awesome! can I use some snippets from those docs?! of course I'll give you attribution in our docs |
Great. Thanks guys! :-) |
Original ticket on the assemble.io repo.
assemble/assemble#537 (comment)
Is there a way to set up child pages with gulp-assemble?
For example
example.com/parent/child.html
.Looks like you can use "flatten" (https://github.com/assemble/assemble#flatten) in Grunt. Any idea if it's possible with gulp?
The text was updated successfully, but these errors were encountered: