-
Notifications
You must be signed in to change notification settings - Fork 4
Using yaml files
edmundask edited this page Dec 27, 2011
·
1 revision
If you decide to use YAML files for asset definitions and asset routes, there's one VERY important rule to remember: use spaces instead of tabs. Sprinkle uses sfYaml library for YAML file parsing and it is sensitive when it comes to parsing them.
For those who are using SublimeText, there's an easy way to set up the configuration for YAML file editing.
Open Preferences > Browse Packages... then find the YAML folder and open YAML.sublime-settings file. In there put the following:
{
"word_wrap": false,
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true
}
This will allow you to use the Tab key to insert 2 spaces instead of a regular tab symbol. There should be similar options for other editors. Of course, you can always use the spacebar to achieve this.