@axway/api-builder-plugin-fn-mustache
v2.0.2
Published
Mustache plugin
Downloads
528
Readme
api-builder-plugin-fn-mustache
About
This plugin installs the Mustache flow-node to be used within Axway API Builder's flow editor. The flow-node provide one method:
Format string
The Format string
method composes a string by evaluating a template using Mustache.
The Format string method parameters are:
| Parameter | Type | Description | Configuration selection | | --- | --- | --- | --- | | data | any | The value to assign to the "data" variable in the template | Any | | template | string | The Mustache template. For example: Hi {{data.user}} | Selector, String |
Getting started
- Follow the Getting Started Guide to create an API Builder service
- Follow the Axway Flow SDK guide to get started creating flow-node plugins.
Install
After creating your API Builder service (api-builder init
), you can install this plugin using npm:
npm install --no-optional @axway/api-builder-plugin-fn-mustache
The "Mustache" flow-node will then be available in the tools panel when creating or editing Flows.
Changes
2.0.2
- #7538: Update
@axway/api-builder-sdk
dependency.
2.0.1
- #7517: Update @axway/api-builder-sdk dependency.
2.0.0
- #6089: Breaking change: requires minimum Node.js version 16.x.
1.1.5
- #7470: Update @axway/api-builder-sdk dependency.
1.1.4
- #7466: Update @axway/api-builder-sdk dependency.
1.1.3
- #7474: Internal dev-dependency move.
1.1.2
- #7412: Pin in-house dependencies.
1.1.1
- #7403: Internal dev-dependency change.
1.1.0
- #6933: Replace peerDependency on @axway/api-builder-runtime with
engines.apibuilder
.
1.0.11
- #7057: Updated documentation links.
1.0.10
- #7010: Internal refactor of unit-tests.
1.0.9
- #6992: Fixed regression from 1.0.6.
Data
parameter will now accept any type of input instead of just string.
1.0.8
- #6934: Internal refactoring around code style.
1.0.7
- #6591: Update initial type for
Format string
Data
parameter to beselector
.
1.0.6
- #6415: Migrate from
axway-flow-sdk
to@axway/[email protected]
.
1.0.5
- #6315: Internal chore.
1.0.4
- #6233: Fix issue where errors were resolved as an object instead of resolving with an actual
Error
.
1.0.3
- #6116: Internal cleanup chore.
1.0.2
- #6074: Internal CI chore
1.0.1
- #5924: Improve parameter documentation.
1.0.0
- #5924: Initial release of Mustache flow-node.
License
This code is proprietary, closed source software licensed to you by Axway. All Rights Reserved. You may not modify Axway’s code without express written permission of Axway. You are licensed to use and distribute your services developed with the use of this software and dependencies, including distributing reasonable and appropriate portions of the Axway code and dependencies. Except as set forth above, this code MUST not be copied or otherwise redistributed without express written permission of Axway. This module is licensed as part of the Axway Platform and governed under the terms of the Axway license agreement (General Conditions) located here: https://support.axway.com/en/auth/general-conditions; EXCEPT THAT IF YOU RECEIVED A FREE SUBSCRIPTION, LICENSE, OR SUPPORT SUBSCRIPTION FOR THIS CODE, NOTWITHSTANDING THE LANGUAGE OF THE GENERAL CONDITIONS, AXWAY HEREBY DISCLAIMS ALL SUPPORT AND MAINTENANCE OBLIGATIONS, AS WELL AS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO IMPLIED INFRINGEMENT WARRANTIES, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND YOU ACCEPT THE PRODUCT AS-IS AND WITH ALL FAULTS, SOLELY AT YOUR OWN RISK. Your right to use this software is strictly limited to the term (if any) of the license or subscription originally granted to you.