In trying to give named parameters to mixins, I noticed you can get away doing this:
```pug mixin simpleField({label, name, isRequired, leftIconClass}) .field label.label(for=`txt-${name}`)= label div(class=`control ${leftIconClass ? "has-icons-left" : ""}`) input.input( id=`txt-${name}`, name= name, type='text', required= isRequired) if leftIconClass span.icon.is-small.is-left i.fas(class= leftIconClass)
+simpleField({ label: "Full Name", name: "host-full-name", isRequired: true, leftIconClass: "fa-user" })
```
Is there a good chance this is going to break in the future?
This is the forum for the Geany IDE, not any specific programming language. You should ask on teh appropriate forum for the language you are using.
Sorry, brain fart, you may delete/close this issue.
Closed #2083.
github-comments@lists.geany.org