Features:
- 👨🔬 100% tests coverage;
- 💡 Lightweight - No external dependencies, all feature helpers has only weak dependencies;
- ⚖️ Compare values with conditions -
{{#if compare one '===' two}} ... {{/if}}; - 🐒 Get/set Session (weak dependency) -
{{Session 'key' set='value'}},{{#if Session 'key'}} ... {{/if}}; - 🔨 Use underscore's functions (weak dependency) -
{{#if _ 'isString' 'one'}} ... {{/if}}; - 👨💻 Debug/log passed objects as a string to template -
{{log this.someVal 'string' object="value"}}.
meteor add ostrio:templatehelpersUse comparison, conditional, and logical operations right in the Blaze templates. Get access to Session object ans stored values. Execute underscore package methods. And debug Blaze templating data using log helper.
Compare template data. Create conditional if and unless blocks.
Compare complex template data.
Compare single value against many (any of.. match).
Template debugging - Log arguments into browser's console with output into template
Add console=true as an argument to log values into JS-console
Get or set session value from views via Session helper
Execute underscore methods in template
- Clone this package
- In Terminal (Console) go to directory where package is cloned
- Then run:
# Default
meteor test-packages ./
# With custom port
meteor test-packages ./ --port 8888- Upload and share files using ☄️ meteor-files.com — Continue interrupted file uploads without losing any progress. There is nothing that will stop Meteor from delivering your file to the desired destination
- Use ▲ ostr.io for Server Monitoring, Web Analytics, WebSec, Web-CRON, and SEO Pre-rendering of a website
- Star on GitHub
- Star on Atmosphere
- Sponsor via GitHub
- Support via PayPal