Fork me on GitHub
#hoplon
<
2016-08-06
>
matan17:08:08

Newb. I read in Hoplon docs:

How will templating and HTML processing work in HLisp?

Solution: None, yet.
So no templating in hoplon?

micha17:08:44

@matan: what do you mean by templating? in hoplon such things are obsolete

micha17:08:18

there is no need to do string munging of html whatsoever in a hoplon application

micha17:08:23

because the dom is first class

micha17:08:42

you just make functions (see hoplon.core/defelem)

micha17:08:01

although you can still use any of the many js templating libraries in your application if you wish

micha17:08:23

like mustache, swig, jquery template, whatever

micha17:08:02

but in my experience that only adds complexity for no benefit

flyboarder18:08:40

^imo a template is just code in a restricted dsl, makes more sense to use functions

micha18:08:20

yep and the whole process of converting strings to html and then using jquery or whatever to attach event handlers etc

micha18:08:36

not ideal

micha18:08:08

@matan: if you have an example of how you use templates that would be the best thing, because we could then show you the alternative

flyboarder20:08:50

@micha latest PR’s for hoplon and boot-hoplon remove jQuery and use GCL

micha20:08:38

why replace jquery with gcl?

flyboarder20:08:26

doesnt replace, removes dependency and makes it optional, anything internal which used jQuery is replaced with vanilla js

flyboarder20:08:43

so hoplon doesnt need jQuery or GCL

micha20:08:49

ah ok yes

flyboarder20:08:22

the actual changes are pretty easy to follow in the comparison

flyboarder20:08:50

I wanted to get more eyes on it tho, I do have an app running on the gcl now

flyboarder20:08:09

above brew PR has a screenshot

micha20:08:15

excellent! i'll have a look

micha20:08:32

deep in some haproxy testing at the moment

flyboarder20:08:49

no prob just a heads up, it’s ready for review