Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
templating

7 Articles
{
,

}
Direct link to the article xm
includes markdown preprocessors templating

xm

This is a neat little HTML preprocessor from Giuseppe Gurgone. It has very few features, but one of them is HTML includes, which is something I continue to be baffled that HTML doesn’t support natively. There are loads of ways …

Avatar of Chris Coyier
Chris Coyier on Oct 21, 2020 (Updated on Oct 22, 2020)
Direct link to the article What ya need there is a bit of templating
templating

What ya need there is a bit of templating

I had a fella write in to me the other day. He had some HTML, CSS, and JavaScript, and it just wasn’t behaving like he thought it ought to. The HTML had some placeholders in it and the JavaScript had …

Avatar of Chris Coyier
Chris Coyier on Jul 21, 2020
Direct link to the article A Follow-Up to PHP Templating
php templating

A Follow-Up to PHP Templating

Not long ago, I posted about PHP templating in just PHP (which is basically HEREDOC syntax). I’m literally using that technique for some super basic templating I needed to do on this very WordPress site. The main pushback was that …

Avatar of Chris Coyier
Chris Coyier on Feb 28, 2020 (Updated on Feb 29, 2020)
Direct link to the article PHP is A-OK for Templating
php templating WordPress

PHP is A-OK for Templating

PHP templating often gets a bad rap for facilitating subpar code — but that doesn’t have to be the case. Let’s look at how PHP projects can enforce a basic Model, View, Controller (MVC) structure without depending on a purpose-built …

Avatar of Chris Geelhoed
Chris Geelhoed on Feb 4, 2020
template literal templating

HTML Templates via JavaScript Template Literals

You know those super cool backticks-for-strings in new JavaScript?

let emotion = `happy`;
let sentence = `Chris is feeling ${emotion}`;

Besides the variable interpolation in there being mighty handy, the do multi-line strings wonderfully, making them great for chunks of …

Avatar of Chris Coyier
Chris Coyier on Sep 11, 2017 (Updated on Sep 13, 2017)
Direct link to the article Four Killer Features of Nunjucks
nunjucks templating

Four Killer Features of Nunjucks

Nunjucks calls itself “A rich and powerful templating language for JavaScript”, which sounds about right. It’s not intentionally super lightweight like Mustache or the slightly more robust (but still pretty light) Handlebars. It’s a full-on language, packed with all …

Avatar of Chris Coyier
Chris Coyier on May 3, 2017
css modules templating webpack

Getting Started with CSS Modules

There isn’t one single approach with CSS Modules to making the JavaScript templates, the CSS files, or the build steps to make them work. In this post, which is part of a series on CSS Modules, we’ll look at one …

Avatar of Robin Rendle
Robin Rendle on Apr 11, 2016 (Updated on Jan 20, 2018)

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top