Lurker News

Comments (229) 60 threads

Show all comments

Showing thread 5 of 60

minikomi3 replies#
Wow, now we can write pages like

     {
      "content": [
        ["html", {},
         [["head", {}, []],
          ["body", {},
           [["h1", { id: "main-header" }, [
               "Welcome to my",
               ["span", { class: "red-text" },
                ["PAGE"]]]],
            ["h2", { id: "sub-header" }, [
                "It's so cool.",
                ["br", {}, nil],
                "Don't you think?"]]]]]]]};
gpnt1 reply#
This is actually the exact opposite of why I have created WDR. The JSON is supposed to be only pure data. All the markup should be inside the render.
escherize#
We do basically this. [0][1]

[0] escherize.com/w/hiccup.space
[1] escherize.com/w/cljsfiddle