These are chat archives for jescalan/roots

2nd
Dec 2015
Martin Berggren
@marthings
Dec 02 2015 15:07
This message was deleted
Florian Kissling
@fk
Dec 02 2015 16:24

Hey! I'm only getting to know Roots – I stumbled upon it while trying to find a new static site build tool. Apart from the Contentful extension, The "Mojotech" and "Hybrid Static" videos really grabbed my attention, and after a quite some searching I am wondering if there is a boilerplate or an example project demonstrating the "Hybrid Static" approach?

Sadly, the link to the Mojotech source points to nowhere (https://github.com/carrot/roots-www/blob/master/articles/built-with-roots.jade#L13).

Matt Rossi
@mordecai174
Dec 02 2015 16:34
hey @fk - yeah unfortunately that repo is private, but I can answer questions or some of the guys that are on here also work at MojoTech and can answer for you
specifically @sethkrasnianski would be a good resource and @samccone (no longer here, but built the scaffolding)
Florian Kissling
@fk
Dec 02 2015 17:08
Hey @mordecai174, thanks for the quick reply and offering help – I'll take the plunge and report back!
Florian Kissling
@fk
Dec 02 2015 19:15

@mordecai174 I've been following https://www.youtube.com/watch?v=cGzkohoTUHc (in a newly created Roots project) to familiarize myself with "static hybrid", client-templates and roots-records, and ran into a small problem: The initial set of staff members (https://github.com/carrot/static-hybrid-example/blob/master/views/index.jade#L9) wouldn't render to HTML, while the dynamic appending triggered via the "See more carrot staff!" button would.

So I cloned https://github.com/carrot/static-hybrid-example, yielded a roots watch – and here the initial rendering worked.

Then I checked package.json in my newly created Roots project and found out that if I use roots-records at v0.1.0 (instead of the current v0.5.1), the initial rendering works fine.

Can you tell me what I have to do to make things work as expected using the current version of roots-records?

Martin Berggren
@marthings
Dec 02 2015 23:07
@oliver41 I found your question about PostScss and had to try it out. Im using it at the moment :) Finally got sass + autoprefix to work for me! Sweeet!!

I´m skipping css_pipeline, requiring postscss and autoprefixer and in app.coffee i added

postscss(autoprefixer(['> 5%', 'last 2 versions', 'ie > 7'])).process({
    from: 'assets/app.scss',
    to: 'public/css/app.css'
});

Compiles in a SNAP! That code could possibly be more coffeefied though i guess.