I recently published an article on Smashing Magazine. For those who don’t know, Smashing Magazine is a well respected website in the design and development world. It’s kind of like Lifehacker or Tiny Buddha, but for web designers and developers.
I was incredibly proud of the article I published. It took weeks of effort and I was elated that I made a contribution to the world. I went to sleep feeling awesome about it.
Unfortunately, I woke up feeling horrified when I looked at my twitter notifications the next day. Many people (mostly whom I don’t know) commented on my article, saying how “the author doesn’t know what he’s talking about”, that “it was a bad article”.
Even people whom I know and respect said that they felt “confused and bizzare” that an article like mine appeared on a well-curated website like Smashing Magazine, and they were “getting worried” about the contents of the article.
The same happened under the comments section on Smashing Magazine as well.
What a great start to the day. What would you have felt, or did?
Flexbox has become one of the most popular tools for creating website layouts. Susy is another layout tool that has gained popularity with the Sass community over the last few years.
Many developers I’ve spoken with are unsure which tool is best for creating layouts for their websites. Some feel that flexbox is powerful enough to handle all of their layout problems. However, they are unsure whether to learn it because of its confusing syntax. Others feel that Susy is much simpler and prefer its simplicity to flexbox.
Template Engines are tools that help us break HTML code into smaller pieces that we can reuse across multiple HTML files. They also give you the power to feed data into variables that help you simplify your code.
However, with Node.js, we can now harness the power of template engines easily through the use of tools like Gulp.
That’s what we’re going to cover today in this chapter. We’re going to find out what template engines are, why we should use them, and how to set one up with Gulp.
Gulp is a tool that helps you out with several tasks when it comes to web development. It’s often used to do front end tasks like:
Spinning up a web server
Reloading the browser automatically whenever a file is saved
Using preprocessors like Sass or LESS
This is not a comprehensive list of things Gulp can do. If you’re crazy enough, you can even build a static site generator with Gulp (I’ve done it!). So yes, Gulp is extremely powerful, but you’ll have to learn how to use Gulp if you want to create your own customized build processes.
So that’s what this article is for. It helps you get so good with the basics of Gulp that you can begin exploring everything else for yourself.
Choosing to use one tool over another is one of the largest challenges developers face. Regardless of what you’re choosing, be it a code editor, a framework, or even a build tool. It’s never an easy decision.
When it comes to build tools, the two most popular options right now are Grunt and Gulp. But are these the only two you should choose from? If not, what other choices do you have?