
| Key: |
PSL-122
|
| Type: |
New Feature
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Jens Halm
|
| Reporter: |
Jens Halm
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
Parsley Core
Created: 17/Jun/08 03:26 PM
Updated: 04/Apr/11 05:31 PM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
Spicelib 1.1.0
|
|
|
Proposed syntax:
Default Values can be defined within variable expressions, separated from the variable name with '|'.
Supported types:
1. String Literals ${foo|'Default Value'}
2. Numeric Literals ${foo|2.75}
3. Boolean Literals ${foo|false}
4. Null Literal ${foo|null}
5. Reference to other Variable ${foo|bar}
Defining defaults will be optional, a plain ${foo} is still valid, but should throw an Error if undefined.
|
|
Description
|
Proposed syntax:
Default Values can be defined within variable expressions, separated from the variable name with '|'.
Supported types:
1. String Literals ${foo|'Default Value'}
2. Numeric Literals ${foo|2.75}
3. Boolean Literals ${foo|false}
4. Null Literal ${foo|null}
5. Reference to other Variable ${foo|bar}
Defining defaults will be optional, a plain ${foo} is still valid, but should throw an Error if undefined.
|
Show » |
| There are no comments yet on this issue.
|
|