Mercurial Hosting > freedit
comparison src/lib/Shared.luan @ 44:96f0c3d65698
add /bbcode
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 10 Nov 2022 23:18:58 -0700 |
parents | 0c1b820fff34 |
children | 78b2d6995244 |
comparison
equal
deleted
inserted
replaced
43:298c71e0c854 | 44:96f0c3d65698 |
---|---|
102 %><a href="javascript:" onclick="deletePost(parentNode)">delete</a><% | 102 %><a href="javascript:" onclick="deletePost(parentNode)">delete</a><% |
103 end | 103 end |
104 Shared.delete_post = delete_post | 104 Shared.delete_post = delete_post |
105 | 105 |
106 function Shared.show_post(post,now) | 106 function Shared.show_post(post,now) |
107 local Bbcode = require "site:/lib/Bbcode.luan" | 107 local Bbcode = require "site:/bbcode/Bbcode.luan" |
108 local bbcode_to_html = Bbcode.to_html or error() | 108 local bbcode_to_html = Bbcode.to_html or error() |
109 %> | 109 %> |
110 <div post="<%=post.id%>"> | 110 <div post="<%=post.id%>"> |
111 <hr> | 111 <hr> |
112 <div author> | 112 <div author> |