question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Step 'Template'

See original GitHub issue

Feature Owner: Paul

As a citizen integrator, I want to be able to add a Template in a step connector. Each Template step must have a template added. FreeMarker and Velocity and Mustache should be supported. In the step configuration, I want to be able to add via file upload or URL. I can choose a type (FreeMarker) or preferably this is automatically set by reading the file. Once a file loads display a text editor, with validate and inline context editor? Once a template step is complete, a warning is displayed (shape is present) and data mapping is now required. Example template for illustration: Example.tmpl

Hello $name
Thanks for buying $product
Cheers
$company

In the above example, if you return to change the product name to product2 does it break the mapper? Can we catch this? (As per the call, yes this should be ok)

Nice to have: Ability to edit the template later

DoD

  • Mustache is the only supported format for 7.2
  • Simple text editor is available.
  • No inline validation is required for 7.2
  • Namespace support will be provided and the chosen namespace format($header.product ?) should work with FreeMarker and Velocity and Mustache

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TovaCohencommented, Jul 17, 2018

Thanks for the notes, Amy! These template things are new to me. So I looked them up. Here’s a short description of the three template implementations that should initially be supported. I’m adding this here in case anyone else might find this useful.

  • Apache FreeMarker™ is a template engine: a Java library to generate text output (HTML web pages, e-mails, configuration files, source code, etc.) based on templates and changing data. Templates are written in the FreeMarker Template Language (FTL), which is a simple, specialized language (not a full-blown programming language like PHP).

  • Apache Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.

  • Mustache is a logic-less template syntax. It can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object. Some tags are replaced with a value, some nothing, and others a series of values.

A “Template” step is the kind of step that operates on data between connections.

0reactions
gaughancommented, Aug 31, 2018

Also nice to have the ability to edit the template later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom step templates - Octopus Deploy
These custom step templates can be reused in projects and managed in the step ... Once a day Octopus retrieves the latest step...
Read more >
How do I update an Octopus Deploy step template? - DLM ...
Rename the old template; Copy and paste the new template from the Octopus Deploy Library website; Find out which of your Octopus Deploy...
Read more >
When updating a Step Template - update across all Projects
I want to use template-all model, where all projects consists only of step templates, to provide central management of deployment process.
Read more >
390+ step Customizable Design Templates - PosterMyWall
Create free step flyers, posters, social media graphics and videos in minutes. ... New Amazing Education Steps Infographic A4 template.
Read more >
Step-by-step Guide Template - Stonly
With clear step-by-step instructions, a company can significantly reduce accidents and costly errors. Finally, such guides help train new hires faster and align ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found