docs: Add Handlebars helper functions to README#39740
Conversation
Added missing helpers to README
|
Bito Automatic Review Skipped - Files Excluded |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Monish-1109
left a comment
There was a problem hiding this comment.
The README previously listed only a few helpers. This PR adds commonly used helpers to make documentation more accurate.
|
@Monish-1109 can you update the pull request summary on the reasoning for these changes? |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Handlebars chart plugin README to document additional built-in helper functions.
Changes:
- Add documentation entries for
eq,neq,gt, andlthelpers. - Extend the “currently registered helpers” list with usage examples.
| 5. **eq**: Returns true if values are equal. | ||
| - **Usage**: {{eq a b}} | ||
|
|
||
| 6. **neq**: Returns true if values are not equal. | ||
| - **Usage**: {{neq a b}} | ||
|
|
||
| 7. **gt**: Returns true if a > b. | ||
| - **Usage**: {{gt a b}} | ||
|
|
||
| 8. **lt**: Returns true if a < b. | ||
| - **Usage**: {{lt a b}} |
|
|
||
| 4. **`parseJson`**: Parses a JSON string into a JavaScript object. | ||
| - **Usage**: `{{parseJson jsonString}}`. | ||
|
|
| 4. **`parseJson`**: Parses a JSON string into a JavaScript object. | ||
| - **Usage**: `{{parseJson jsonString}}`. | ||
|
|
||
| 5. **eq**: Returns true if values are equal. |
Added missing helpers to README
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION