Changeset 17929 in project


Ignore:
Timestamp:
04/26/10 15:59:04 (9 years ago)
Author:
Mario Domenech Goulart
Message:

Changes applied for mario (189.114.111.55) through svnwiki:

Awful scripts tip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/awful

    r17851 r17929  
    6868
    6969
    70 
     70An alternative way to write Awful '''scripts''' is by using the {{#!/path/to/awful}} shebang line.  Example:
     71
     72<enscript highlight=scheme>
     73#! /usr/bin/awful
     74
     75(use awful)
     76 
     77(define-page (main-page-path)
     78  (lambda ()
     79    "Hello, world!"))
     80</enscript>
     81
     82Then you just need to run your script (assuming the file has execution permissions):
     83
     84  $ ./hello-world.scm
    7185=== Accessing request variables
    7286
Note: See TracChangeset for help on using the changeset viewer.