Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GoombaProgrammer committed May 23, 2023
2 parents 055d478 + afa5684 commit 275d0d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/wiki.cool
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%cool
// CoolioWiki - A Wikipedia clone in percentCool
// CoolioWiki - A MediaWiki clone in percentCool
// (c) 2023 Novixx Systems
// THIS PROJECT IS MADE SO YOU CAN LEARN HOW TO MAKE A WEBSITE IN PERCENTCOOL

Expand Down Expand Up @@ -66,6 +66,9 @@ existing $url.page
if $_EXISTS = true
echo "<h2>$url.page</h2>"
echo "<a href='?edit=$url.page&page=$url.page'>Edit</a>"
replace $content < &lt;
replace $content > &gt;
replace $content "\"" &quot;
echo "<p>$content</p>"
stopif
existing $url.edit
Expand All @@ -89,9 +92,9 @@ if $_EXISTS = true
// but percentCool does support writing strings without quotes
replace $post.content "\n" <br>

replace $i < &lt;
replace $i > &gt;
replace $i "\"" &quot;
replace $post.content < &lt;
replace $post.content > &gt;
replace $post.content "\"" &quot;
escape $post.content
escape $url.save

Expand Down

0 comments on commit 275d0d4

Please sign in to comment.