Fork me on GitHub
#om
<
2017-02-17
>
sova-soars-the-sora16:02:33

I think I finally have a use-case for macros.

sova-soars-the-sora16:02:05

I want to pre-process my ui code so it just removes all the #js { } maps. replacing them with nil

sova-soars-the-sora16:02:33

I wonder how I can do that 🐝

williballenthin16:02:50

@sova: you might also take a look at the DOM tools in om-tools either for inspiration, or simply to solve your problem. > Element attributes are not required to be JavaScript values and are optional. You don't need to use the #js reader macro or nil for no attributes. https://github.com/plumatic/om-tools

hlolli16:02:45

@sova don't like sablono?

dnolen17:02:55

has anybody had a chance to vet this one? https://github.com/omcljs/om/pull/691

anmonteiro18:02:25

@dnolen I talked a little bit with @cmcfarlen at the Conj and sounded like a real issue

dnolen18:02:53

@anmonteiro ok, just mostly interested in whether this doesn’t cause some other issue

anmonteiro18:02:44

I’m hoping tests would have caught that

anmonteiro18:02:59

I think @tony.kay tested out process-roots quite a bit

dnolen18:02:03

ok will give it a spin in a bit then

sova-soars-the-sora19:02:05

@hlolli sablono looks cool, are you using it with om.next?