These are chat archives for jescalan/roots

12th
Dec 2015
Askar
@tenzan
Dec 12 2015 02:50
@jenius thanks for the reply ^
Jeff Escalante
@jescalan
Dec 12 2015 03:34
@stevesunderland no, contentful has their own way of doing i18n check their docs
@marthings accord just passes the options right through to node-sass, very rarely touches any of them. so you can just look into node-sass's options directly. you can always find accord's docs on options in the docs folder in the accord repo. here's a link to our docs for sass options: https://github.com/jenius/accord/blob/master/docs/scss.md
unfortunately it doesn't look like they have options to change the error reporting though
@tenzan of course! let me know if there's anything else I can help with
Steve Sunderland
@stevesunderland
Dec 12 2015 03:47
thanks @jenius ! I checked the docs but can't figure out how to get Contentful locales working with roots-contentful. Let me know if you have any suggestions!
Askar
@tenzan
Dec 12 2015 05:27
@jenius This weekend I’m going to try integration with bootstrap
Jeff Escalante
@jescalan
Dec 12 2015 06:14
@stevesunderland i'm sorry, I don't personally. Haven't worked with contentful locales. perhaps someone else will be able to help!
@tenzan ok, good luck! should be fairly simple, just include the files and you're set
Askar
@tenzan
Dec 12 2015 06:15
@jenius :+1:
Steve Sunderland
@stevesunderland
Dec 12 2015 06:16
cool thanks!
Askar
@tenzan
Dec 12 2015 06:51

@jenius I think (and hope) I was able to integrate bootstrap them into roots
my github repo https://github.com/tenzan/roots-bootstrap

Basically I just copy & pasted all assets from the bootstrap them into roots’s assets folder. Besides standards folders (like css), there were some new such as
font-awesomeand less, which I copied too.
Is that OK? Just wondering if there’s anything I must keep in mind...

Askar
@tenzan
Dec 12 2015 07:28
Does it mean we can mix ejs and jade templates within one app ?
For example, index.esj and about.jade.
Also, I’m new to both of this templating languages. Any recommendations to start with?
My understanding, we can use markdown as well...
Askar
@tenzan
Dec 12 2015 07:49

I’m reading now about ejs here http://www.embeddedjs.com/getting_started.html#include

it says:

Next add EJS to your HTML like this:
<script type="text/javascript" src="ejs_production.js"></script>

How can we add this as HTML files are generated after compilation? :smile:

Jeff Escalante
@jescalan
Dec 12 2015 07:49
just put the script tag in your jade file
you can also use ejs instead of jade. just npm i ejs -S then change the extension to .ejs
depends on whether you are trying to use it as a client side template or to generate static html
either one is super easy with roots
Askar
@tenzan
Dec 12 2015 07:55

@jenius thanks

just put the script tag in your jade file

noted

you can also use ejs instead of jade. just npm i ejs -S then change the extension to .ejs

I assume, I will have to change a syntaxes as well, as they’re different languages

depends on whether you are trying to use it as a client side template or to generate static html

to which questions is this answer for?

Jeff Escalante
@jescalan
Dec 12 2015 07:55
yes of course
you would change the syntax
Askar
@tenzan
Dec 12 2015 07:56
how about markdown?
Jeff Escalante
@jescalan
Dec 12 2015 07:57
you can use markdown, just install marked and change the extension to .md
but beware markdown does not have any templating at all
you can also use markdown inside a jade file (usually a better idea)
with the :markdown filter
more on this in jade docs
Askar
@tenzan
Dec 12 2015 07:59
thanks
Jeff Escalante
@jescalan
Dec 12 2015 07:59
:+1:
Askar
@tenzan
Dec 12 2015 07:59
@jenius what do you personally prefer: jade or ejs?
Jeff Escalante
@jescalan
Dec 12 2015 08:00
jade
not even close competition in my mind
Askar
@tenzan
Dec 12 2015 08:00
I see
:smile:
Jeff Escalante
@jescalan
Dec 12 2015 08:04
ok well i have to run in a couple minutes -- is there anything else i can help with before I go?
Askar
@tenzan
Dec 12 2015 08:20
@jenius thanks for your time