<FromGitter>
<anamba> ok, this is a good start, but doesn't go far enough for me. :-) plus, for whatever reason i still prefer ecr (ok, the reason is probably >20 years of writing html) i am going to see if i can implement ActiveSupport's output safety as a shard
<robacarp>
@anamba I'm in a similar boat, slang is backwards to me. In html, everything is text unless otherwise specified. In slang, everything is a _tag_ unless otherwise specified. It's so confusing
<robacarp>
ecr isn't my favorite either, and there hasn't been a haml implementation yet, so I just deal with it :<
<FromGitter>
<anamba> hmm... has anyone written something like `sanitize` or do i have to do that part too? (retains whitelisted tags and attributes, everything else gone)
<FromGitter>
<proyb6> We really need to build a sanitize in shard that will work across all projects, I suggest anyone can start it
<FromGitter>
<anamba> like it says :) i worked around it using `forward_missing_to`, but i wonder why that is in there
<FromGitter>
<Blacksmoke16> well yea you cant inherit from it, what you trying to do?
_whitelogger has joined #amber
<FromGitter>
<anamba> just wanted to add a `#.html_safe` that returns true. it's ok, i worked around it by creating a new class, and i'm almost done with the shard now. just having some trouble writing the specs... the `run` file thing for macros is very interesting, but also very strange
<FromGitter>
<Blacksmoke16> you would do it by doing like
<FromGitter>
<Blacksmoke16> would have to include your logic into it, but wrapping it in the `class String` would make it available on all string types by default
<FromGitter>
<Blacksmoke16> is pretty slick but still a lot to think about
<FromGitter>
<anamba> i had been making some changes to `amber watch` lately for myself, and was preparing a PR, but then found this: https://github.com/amberframework/amber/pull/865 i'll take a closer look at that soon, over the weekend perhaps
<FromGitter>
<anamba> and anyone who has a personal wishlist for `amber watch`, just let me know...
<FromGitter>
<anamba> oh, it was merged. so recently that i haven't encountered it yet. 😆
<FromGitter>
<drujensen> @anamba The biggest ask for `amber watch` is that it is configurable so you can replace for example `npm` with `yarn` or your own flavor of js. It would be awesome if you take this on. The goal was to have the list of items to watch in the `.amber.yml` file.
<FromGitter>
<anamba> ok, that makes sense. probably shouldn't be too hard
<FromGitter>
<drujensen> There is a shard called https://github.com/arktisklada/crank that is a port of foreman. I don’t know if that would come in handy here
<FromGitter>
<drujensen> I used to use foreman before I moved to docker for my projects
<FromGitter>
<anamba> i figure i can probably work with the simple process management that's already in place
<FromGitter>
<anamba> @Blacksmoke16 so i ran into some issues and tried to add methods to String. but i found that String is a VERY strange class. it does not seem to be an actual Crystal class at all.
<FromGitter>
<anamba> which is probably why they don't want people subclassing it.