A simple template function that compiles data into the template.
Built for demoing my Andraia Mobile JS framework.
A Pen by Gregory Pike on CodePen.
A simple template function that compiles data into the template.
Built for demoing my Andraia Mobile JS framework.
A Pen by Gregory Pike on CodePen.
#!/bin/bash | |
LESSCSS="First parameter" | |
COMPILEDCSS=$2 | |
if [ -z "$1" -o -z "$2" ]; then | |
echo "To use compile-css pass 1. less file 2. compiled css file" | |
fi | |
if [[ $1 ]]; then | |
LESSCSS=$1 |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 Starter Template</title> | |
<meta name="description" content="Starter Template"> | |
<meta name="author" content="Gregry Pike"> | |
<link rel="stylesheet" href="css/styles.css?v=1.0"> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
<snippet> | |
<content><![CDATA[ | |
console.log(${1:this}); | |
]]></content> | |
<tabTrigger>cons</tabTrigger> | |
</snippet> |