Mercurial Hosting > luan
changeset 1707:ad5647031343
fix blog
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Jul 2022 12:40:59 -0600 |
parents | 93b9fd13a06c |
children | 8d257d56dc42 |
files | examples/blog/src/index.html.luan examples/blog/src/new.html.luan |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/blog/src/index.html.luan Mon Jul 04 12:30:16 2022 -0600 +++ b/examples/blog/src/index.html.luan Mon Jul 04 12:40:59 2022 -0600 @@ -3,8 +3,6 @@ local ipairs = Luan.ipairs or error() local Time = require "luan:Time.luan" local Io = require "luan:Io.luan" -local Parsers = require "luan:Parsers.luan" -local bbcode_to_html = Parsers.bbcode_to_html or error() local Html = require "luan:Html.luan" local html_encode = Html.encode or error() local Http = require "luan:http/Http.luan" @@ -44,7 +42,7 @@ - <a href="edit.html?post=<%= post.id %>">Edit</a> - <a href="delete?post=<%= post.id %>">Delete</a> </p> - <pre><%= bbcode_to_html(html_encode(post.content)) %></pre> + <pre><%= html_encode(post.content) %></pre> <hr> <% end
--- a/examples/blog/src/new.html.luan Mon Jul 04 12:30:16 2022 -0600 +++ b/examples/blog/src/new.html.luan Mon Jul 04 12:40:59 2022 -0600 @@ -29,7 +29,7 @@ <form method=post> <p>Subject: <input name=subject size=50 type=text></p> - <p><textarea name=content rows=20 cols=90></textarea><br>bbcode works</p> + <p><textarea name=content rows=20 cols=90></textarea></p> <p> <input type=submit name=save value=Submit> </p>