Skip to content

Instantly share code, notes, and snippets.

@benbjohnson
Created August 2, 2011 18:25
Show Gist options
  • Save benbjohnson/1120837 to your computer and use it in GitHub Desktop.
Save benbjohnson/1120837 to your computer and use it in GitHub Desktop.
Mockdown Documentation
%canvas width="100" height="100" border="1px #000000" background="#FF0000"
%canvas width="50%" height="20" background="#00FF00"
%canvas width="20" height="20" vcenter="0" hcenter="0" background="#0000FF"
%canvas width="100" height="100" border="1px #000000" background="#FF0000"
%my-component selected="true" first-name="Bob" hcenter="0" vcenter="0"
import ios
%iphone
%navigation-view header-text="Hello, World!"
%table-view
%search-bar
%canvas width="100" height="100" border="1px #000000" background="#FF0000"
%my-component selected="true" first-name="Bob" hcenter="0" vcenter="0"
%border width="100%" height="100%" background="#999999"
%border width="100%" height="100%" background="#666666"
%border width="100%" height="100%" background="#333333"
%canvas width="100" height="100" border="1px #000000" background="#FF0000"
property selected:boolean="false"
property first-name:string
%canvas background="#CCCCCC,#FFFFFF"
%text value="{{first-name}}"
property selected:boolean="false"
property first-name:string
%canvas background="#CCCCCC,#FFFFFF" background[selected="true"]="#00FF00"
%text value="{{first-name}}"
property selected:boolean="false"
property first-name:string
%col background="#CCCCCC,#FFFFFF" background[selected="true"]="#00FF00"
%text value="{{first-name}}"
%row width="100%" height="30" border="1px #000000"
=yield
property selected:boolean="false"
property first-name:string
property my-named-yield:component
%col background="#CCCCCC,#FFFFFF" background[selected="true"]="#00FF00"
%text value="{{first-name}}"
%row width="100%" height="30" border="1px #000000"
=yield
=yield my-named-yield width="100%" height="20"
property selected:boolean="false"
property first-name:string
%canvas background="#CCCCCC,#FFFFFF"
%text value="Hello!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment