Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Question to gods

by lindex (Friar)
on Aug 24, 2000 at 16:58 UTC ( [id://29407]=monkdiscuss: print w/replies, xml ) Need Help??

I haven't really studied the Everything source, but I was wondering.
can you more highly leveled monk type ppl embed perl code in your nodes (or at least home nodes)
if not have you ever considered this?
* duck and cover *


lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/

Replies are listed 'Best First'.
RE: Question to gods
by chromatic (Archbishop) on Aug 24, 2000 at 19:21 UTC
    No, at least not as far as the site works as it was designed. There are two basic kinds of documents (for the sake of this discussion, I'll just say that a normal node is probably a document): Document and Superdoc.

    A Document is what us normal users edit. It can have embedded HTML and links to other nodes. It has other special characteristics, but those have mostly to do with what's displayed. Home nodes are Documents (or a subclass).

    A Superdoc is neater -- it can contain embedded Perl code. Best Nodes, Worst Nodes, and Saints in Our Book are all Superdocs. Only gods have access to edit those.

    Nodes are dealt with by type, so if the system works as it's supposed to, nothing in a Document will be interpreted as a Superdoc. :)

RE (tilly) 1: Question to gods
by tilly (Archbishop) on Aug 24, 2000 at 17:29 UTC
    I am very ungodlike, but I will dare answer. :-)

    I hope not. Two reasons why. The first is that it is too hard to lock down possible security holes. The second is that poorly written code (and everyone does that from time to time) could cause server instability.

    OT but speaking of gods, I am reminded of a Terry Pratchett quote on atheists. Something about, "The gods actually like atheists. Good for target practice!" :-)

RE: Question to gods
by lindex (Friar) on Aug 25, 2000 at 14:03 UTC

    Update:
    Well I finally looked at the code, and know how you guys accually do it :) Thanks for you reply's, Iam working putting something like that in this little site engine Iam putting to gether my self, though Iam trying to figure out the lazy solution which is to get Apache::ASP to just interpret code (since thats the only Perl in HTML method I have used as of yet).




    lindex
    /****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/
      Two other methods which may be easier are HTML::Embperl and Template Toolkit. There are lots of other tools, but I've checked out both of those and they're quite good.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://29407]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found