Skip to content

Instantly share code, notes, and snippets.

{% extends "layouts/default.html" %}
{% set title = "Twig.js templating test" %}
{% set pageTitle = "Use Twig from the start!" %}
{% set benefits = ["Fast!", "Easy!", "Efficient!"] %}
{% block content %}
{% include "includes/header.html" %}
<ul>
<h3>{{ pageTitle }}</h3>
{% extends "layouts/default.html" %}
{% set title = "Twig.js templating test" %}
{% set pageTitle = "Use Twig from the start!" %}
{% set benefits = ["Fast!", "Easy!", "Efficient!"] %}
{% block content %}
<h3>{{ pageTitle }}</h3>
<ul>
{% for value in benefits %}
<html>
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
</head>
<body>
{% block content %}{% endblock %}
<p>Content from our default layout</p>
</body>
{% set title = "Twig.js templating test" %}
{% set pageTitle = "Use Twig from the start!" %}
{% set benefits = ["Fast!", "Easy!", "Efficient!"] %}
<html>
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
</head>
<body>
<h3>{{ pageTitle }}</h3>
@wjthomas9
wjthomas9 / exportremote.sh
Created March 26, 2015 17:32
Export a remote database and save it locally
#!/bin/sh
#
# This is a shell script for exporting a remote database and
# saving it to a local directory.
#
# EDIT THESE ON A PER-PROJECT BASIS
PROJECT="some_project"
@wjthomas9
wjthomas9 / exportlocal.sh
Created March 26, 2015 17:30
Export local database
#!/bin/sh
#
# This is a shell script for exporting a local database and saving
# it to a gzip file
#
# EDIT THESE ON A PER-PROJECT BASIS
PROJECT="some_project"
@wjthomas9
wjthomas9 / syncremotedbdwn.sh
Created March 26, 2015 17:27
Sync remote database to local
#!/bin/sh
#
# This is a shell script for keeping sandbox and local EE
# environments in sync. It automates the following:
# 1. Export staging database
# 2. Export local database (optional)
# 3. Clear local database
# 4. Import staging database to local
@wjthomas9
wjthomas9 / gist:ff4ff59244ad72c39b06
Created February 2, 2015 15:27
EE Addon Dev Gulpfile
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var sass = require('gulp-sass');
var watch = require('gulp-watch');
var clean = require('gulp-clean');
var zip = require('gulp-zip');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
@wjthomas9
wjthomas9 / Hide OS X Desktop Icons
Last active December 20, 2015 15:09
Hide all desktop icons in OS X
defaults write com.apple.finder CreateDesktop -bool false
killall Finder