Skip to content

Commit a0a71cc

Browse files
committed
Merge pull request #2 from joshkosmala/master
Updates for SS3
2 parents 29d334c + bd90c86 commit a0a71cc

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
1-
# silverstripe package
1+
# SilverStripe Atom Package
22

3-
An atom port of the Silverstripe Textmate Bundle by @mattash
3+
### Commands in your templates (.ss files)
4+
5+
if -> Tab
6+
7+
loop -> Tab
8+
9+
with -> Tab
10+
11+
12+
### Commands in your php
13+
14+
skel -> Tab (default page class skeleton)
15+
16+
dm -> Tab (Debug::message)
417

18+
ds -> Tab (Debug::show)
19+
20+
newfield -> Tab (Field:: date/text/calendar etc)
21+
22+
db -> Tab ($db = array())
23+
24+
getcmsfields -> Tab (getCMSFields())
25+
26+
ho/hm/mm/bmm -> Tab (has_one, has_many, many_many, belongs_many_many)
27+
28+
29+
An atom port of the Silverstripe Textmate Bundle by @mattash
530
Orignal URL: https://github.com/mattash/silverstripe-textmate-bundle.git

snippets/silverstripe.cson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
'ifelse':
99
'prefix': 'ifelse'
1010
'body': '<% if ${1} %>\n${2}\n<% else %>\n${3}\n<% end_if %>'
11+
'loop':
12+
'prefix': 'loop'
13+
'body': '<% if ${1} %>\n${2}\n<% else %>\n${3}\n<% end_loop %>'
14+
'with':
15+
'prefix': 'with'
16+
'body': '<% if ${1} %>\n${2}\n<% else %>\n${3}\n<% end_with %>'
1117
'.source.php':
1218
'CalendarDateField':
1319
'prefix': 'newfield'

0 commit comments

Comments
 (0)