joy-framework / joy

A full stack web framework written in janet
https://joy.swlkr.com
MIT License
535 stars 30 forks source link

Link Rendering Problem #36

Closed sabazk closed 4 years ago

sabazk commented 4 years ago

[:p "Powered by" [:a {:href "https://www.w3schools.com/w3css/default.asp" :title "W3.CSS" :target "_blank" :class "w3-hover-text-blue"} "W3.CSS"]]

This code doesn't create: Powered by W3.CSS <-- with the last part as a link Only output is : Powered by link is blank What am I doing wrong here? and What is poolparty? Enjoying the framework Thanks!

swlkr commented 4 years ago

Yeah, it's kind of annoying, not 1:1 with hiccup quite yet, but there is a way around it by wrapping strings with span like this:

[:p 
  [:span "Powered by "]
  [:a {:href "https://www.w3schools.com/w3css/default.asp"
         :title "W3.CSS"
         :target "_blank"
         :class "w3-hover-text-blue"} 
      "W3.CSS"]]
swlkr commented 4 years ago

Oh and poolparty is a threaded go webserver that should work with joy, if you want a faster server than the default.

sabazk commented 4 years ago

I'm checking out poolparty. Thanks the span works perfect!