46 lines
3.2 KiB
HTML
46 lines
3.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Zk | Concerning the Content Manager.</title>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Lato&family=Ubuntu+Monodisplay=swap" />
|
|
<link rel="stylesheet" type="text/css" href="/style.css?2024-05-04" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<header>
|
|
<h1>Zk | Concerning the Content Manager.</h1>
|
|
</header>
|
|
<article class="content">
|
|
<p><span class="tag">diary</span> <span class="tag">livejournal</span> <span class="tag">fossils</span></p>
|
|
<p>First of all, it needs a good name. I don’t want to just call it ‘RF!P Manager’ or anything, and I’ve pretty much exhausted adding ‘Fox’ to the front of my project names.. Oh well. If anyone has any suggestions, feel free to let me know.</p>
|
|
<p>The actual content managing program would be pretty short; all it would have to do is read in a file containing a list of extensions and the plugin associated with them, then read in the extension file and eval it with either the name of the file or a filehandle passed to it (perhaps open to a scalar filehandle, so you have the filename, too, and don’t have to access <code>$ENV{‘PATH_INFO’}</code> all the time) along with the CGI handler (add <code>$ENV{‘PATH_INFO’}</code> args to CGI params).</p>
|
|
<p>An example url would be ranna.bolognia.net/man/addtable.atm, which is just an html file that requires the user to be logged in to access (Admin::HTML). The atm file has a form who’s action url is /man/addtable.adm, where adm is aliased to the function Admin::Admin which requires a password. The addtable would create an SQL file with the suffix .asql and link to it. The extension .asql is aliased to Admin::SQL, which would decide whether to <code>$dbh->do()</code> or <code>$sth = $dbh->prepare(); …</code> it, and require a password in the process.</p>
|
|
<p>/man alone would have a default action to parse (<code>$action = $ENV{‘PATH_INFO’} || “/index.html”;</code>). /man/.ext would dump information about the extension ‘ext’ (a third field in the config file? <code>extension subroutine info-file</code>)</p>
|
|
<p>An idea for a configuration file:
|
|
<code># Admin types:
|
|
.ah?tml? Admin::HTML ahtml.nfo
|
|
.adm Admin::Admin admin.nfo
|
|
.asql Admin::SQL asql.nfo</p>
|
|
<h1 id="syntax-highlighting">Syntax highlighting:</h1>
|
|
<p>.(pl|c|cc|tex|java) Syntax syntax.nfo</p>
|
|
<h1 id="livejournal">LiveJournal:</h1>
|
|
<p>.lj LiveJournal lj.nfo</p>
|
|
<h1 id="info-and-pod-files">Info and POD files:</h1>
|
|
<p>.(nfo|pod) POD2HTML nfopod.nfo</code</p>
|
|
</article>
|
|
<footer>
|
|
<p>Page generated on 2002-08-09 20:22:13</p>
|
|
</footer>
|
|
</main>
|
|
<script type="text/javascript">
|
|
document.querySelectorAll('.tag').forEach(tag => {
|
|
let text = tag.innerText;
|
|
tag.innerText = '';
|
|
tag.innerHTML = `<a href="/tags.html#${text}">${text}</a>`;
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|