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 |
| <style> | |
| .thumbnail.with-caption { | |
| display: inline-block; | |
| background: #f5f5f5; | |
| } | |
| .thumbnail.with-caption p { | |
| margin: 0; | |
| padding-top: 0.5em; | |
| } | |
| .thumbnail.with-caption small:before { |
| <!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> |