On Wed, May 27, 2020 at 6:45 PM Craig Russell <apache....@gmail.com> wrote:
>
> Two of my current projects involve validated persons filling forms with name 
> and date.
>
> I've seen a few places in whimsy where such things are done, and I'm 
> wondering if there is a current best practice. Is there perhaps a helper 
> method somewhere that takes a couple of file identifiers and a hash of 
> name/value pairs and looks in the document for a match for "name" and then 
> replaces some number of _________________ with the desired substitute string 
> "value" and then commits the new file to its proper place?
>
> If no such helper exists, where should I put it? What should I call it?

What we have today is ad-hoc.  I suggest that going forward we make use of:

https://rubygems.org/gems/mustache/

In part due to its cross-language support:

https://mustache.github.io/

I'm in the process of converting the templates used by the board
agenda tool to mustache format:

 https://svn.apache.org/repos/private/foundation/board/templates

> Thanks,
> Craig
>
> Craig L Russell
> c...@apache.org

- Sam Ruby

Reply via email to