https://github.com/bttmly/dizen
Pluggable decorators
https://github.com/bttmly/dizen
Last synced: 3 months ago
JSON representation
Pluggable decorators
- Host: GitHub
- URL: https://github.com/bttmly/dizen
- Owner: bttmly
- Created: 2014-10-12T19:13:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-13T20:35:30.000Z (over 10 years ago)
- Last Synced: 2025-01-08T22:02:17.003Z (4 months ago)
- Language: CoffeeScript
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dizen
> Pluggable object decorators
### Decorating
```dizen.decorate (obj, decorators, options)```
The `decorator` argument is very dynamic. It can be...
- a string representing the `decorator_name` of a registered decorator (see [dizen.use()]()).
- an array of strings representing registered `decorator_names` (again, [dizen.use()]())
- a decorating object, provided it adheres to the [decorator interface]().
- an array of objects containing decorators and optional [init options]().
```
[{
decorator: String or Object,
options: Object
}, // etc.
]
```