cl-forms icon indicating copy to clipboard operation
cl-forms copied to clipboard

use with dev.metalisp.sbt?

Open mooseyboots opened this issue 10 months ago • 2 comments

there's a well-developed bootstrap library, https://code.metalisp.dev/marcuskammer/dev.metalisp.sbt.

i wonder if it is possible to combine cl-forms with it?

i have an existing project using sbt, and when i combine it with cl-forms using the extra cl-forms boostrap system, the forms do theme, but the styling doesn't match how i have used sbt.

not a huge deal, but i'd be curious to know if i could defer styling to sbt.

mooseyboots avatar Mar 01 '25 09:03 mooseyboots

there's a well-developed bootstrap library, https://code.metalisp.dev/marcuskammer/dev.metalisp.sbt.

i wonder if it is possible to combine cl-forms with it?

everything is possible 😛

i have an existing project using sbt, and when i combine it with cl-forms using the extra cl-forms boostrap system, the forms do theme, but the styling doesn't match how i have used sbt.

not a huge deal, but i'd be curious to know if i could defer styling to sbt.

You would have to implement your own theme in cl-forms using dev.metalisp.sbt . Look at https://github.com/mmontone/cl-forms/blob/master/src/themes/bootstrap.lisp You would have to specialize generic functions like there using a new sbt-theme.

mmontone avatar Mar 01 '25 13:03 mmontone

Also, you are free to render forms however you like. You only need to make the html input field names match the name used in cl-forms:form-field html-name. Then you can use cl-forms in "backend only", or "headless" mode, for fetching form values and validation only, not for rendering.

mmontone avatar Mar 01 '25 14:03 mmontone