Arc Forumnew | comments | leaders | submitlogin
1 point by tvvocold 1202 days ago | link | parent

ok,but how should i edit this in my app? i wanna user click url and open it in the new tab. need more detailes..

plz paste here. thx



1 point by akkartik 1201 days ago | link

Add one line to lib/news.arc:

  (mac npage (title . body)
    `(tag html
       (tag head
         (gen-css-url)
         (prn "<link rel=\"shortcut icon\" href=\"" favicon-url* "\">")
         (prn "<meta name=\"viewport\" content=\"width=device-width\">")
         (prn "<base target=\"_blank\">")  ;; <--- add this line
         (tag script (pr votejs*))
         (tag title (pr ,title)))
       (tag body
         (center
           (tag (table border 0 cellpadding 0 cellspacing 0 width "85%"
                       bgcolor sand)
             ,@body)))))

-----