Created
September 1, 2009 03:11
-
-
Save ratbeard/178879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a haml file with some styles and a little javascript: | |
!!! | |
%html | |
%head | |
%title Whats up dog?? | |
%style | |
:sass | |
body | |
:text-align center | |
.question | |
:font-weight bold | |
%body | |
%h1 Best Page | |
%p | |
I love dogz. So much. | |
.question do you? | |
:javascript | |
var place = "pound"; | |
alert("Welcome to the " + place); | |
Copy the above code. | |
Open terminal. | |
Try the command `pbpaste` will echo out whats in your clipboard. | |
Instead of echoing to the terminal, we can redirect it to echo to a file with `>`. | |
Lets convert the above into html: | |
cd /tmp | |
pbpaste > dog.haml | |
haml dog.haml dog.html | |
open dog.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment