Menu icon Foundation
Panini custom helper with multiple variables

Hello,

I'm trying to build a custom Panini form helper that would allow multiple variables. I'd like to come up with something like this:

{{#input label="I'm a label" class="" type="text" placeholder="I'm a placeholder"}}{{/input}}

Would render this:

<label>I'm a label
  <input type="text" placeholder="I'm a placeholder">
</label>

But is it even possible?

Thanks!

paniniHandlebarshelper

Hello,

I'm trying to build a custom Panini form helper that would allow multiple variables. I'd like to come up with something like this:

{{#input label="I'm a label" class="" type="text" placeholder="I'm a placeholder"}}{{/input}}

Would render this:

<label>I'm a label
  <input type="text" placeholder="I'm a placeholder">
</label>

But is it even possible?

Thanks!