Skip to content

Commit b3fed3e

Browse files
committed
Update documentation for SS 3
2 parents ec921f4 + 40b02af commit b3fed3e

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
loop -> Tab
7+
with -> Tab
8+
9+
### Commands in your php
410

11+
skel -> Tab (default page class skeleton)
12+
dm -> Tab (Debug::message)
13+
ds -> Tab (Debug::show)
14+
newfield -> Tab (Field:: date/text/calendar etc)
15+
db -> Tab ($db = array())
16+
getcmsfields -> Tab (getCMSFields())
17+
ho/hm/mm/bmm -> Tab (has_one, has_many, many_many, belongs_many_many)
18+
19+
20+
An atom port of the Silverstripe Textmate Bundle by @mattash
521
Orignal URL: https://github.com/mattash/silverstripe-textmate-bundle.git

snippets/silverstripe.cson

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
'ifelse':
99
'prefix': 'ifelse'
1010
'body': '<% if ${1} %>\n${2}\n<% else %>\n${3}\n<% end_if %>'
11-
'with':
12-
'prefix': 'with'
13-
'body': '<% with ${1} %>\n${2}\n<% end_with %>'
1411
'loop':
1512
'prefix': 'loop'
16-
'body': '<% loop ${1} %>\n${2}\n<% end_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 %>'
1717
'.source.php':
1818
'CalendarDateField':
1919
'prefix': 'newfield'

0 commit comments

Comments
 (0)