• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Spats Download

Spats

December 12, 2008
Spats is a user-friendly and straightforward Page Template Server that can be utilized by all users. It caters to making the process simple and accessible to everyone.
Version 0.1
License LGPL
Platform Linux
Supported Languages English
Homepage sf.net
Developed by Sidnei da Silva
Spats (Simple Page Template Server) is a software designed to serve compiled page templates back to a user through http requests. It's a Python standard library HTTP server subclass that aims to create a simple web server to serve dynamic stuff back to the server.

To use Spats, you need to make a directory and put a start.py in it that reads: "from spats import SimplePageTemplateServer SimplePageTemplateServer.start()". However, you also need to tell it where to read HTML from, so you can pass a config dictionary variable of all the possible values. For example, make a directory called "html" or "pt" and stick a PageTemplate called "index.pt" in there. Then pass that directory through and you're on your way using "from spats import SimplePageTemplateServer config = {"html_dir":"html"} SimplePageTemplateServer.start(config)".

It's important to notice that Spats is not a CGI server and it doesn't serve Python scripts back. It doesn't do any of the stuff Zope does as well. It's simple and it only does GET and HEAD. Spats won't make good cups of tea either.

If you want to use scripts, you can pass through a scripts_dir value in the config, and everything in that directory that ends in ".py" and contains a "__main__" method will be compiled into the scripts context. For instance, you can access in TAL "scripts/foo" where foo is your script. This will call the "__call__" function. The context will be assigned to the script, which is the context variable in TAL, so you can access all TAL variables in the script. Some examples can be seen in the reports site.

It's worth noticing that you don't serve scripts directly, you serve PageTemplates that call scripts. Regarding SimpleTal, it may be quirky if you're already used to Zope TAL, but you should get there quickly. The main quirks are that elements have to be closed and "must" be used. For a commented list of variables, see SimplePageTemplateServer.py.
What's New

Version 0.1: N/A

Free Download 58.1K
316
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

ANts P2P
ANts P2P is a secure and private third-generation peer-to-peer network that makes ...
vpn
VPN is a desktop software that is presented as a SuperKaramba theme, ...
Execute
"Execute" is a screenlet that quickly runs any command you enter within ...
nautilus-sendto
Nautilus-sendto plugin for Nautilus enables users to send files to specific locations.
KQ Lives!
KQ Lives! is a traditional RPG game that brings back the allure ...
elogviewer
Elogviewer is a software designed to enable Gentoo administrators to efficiently analyze ...
mrtg-ping-probe
The MRTG Ping Probe software tracks round trip time and packet loss ...
Avahi
A Linux-based software framework designed for Multicast DNS Service Discovery, enabling efficient ...
Jagacy 3270 Emulator
This software is a highly functional 3270 terminal emulator with numerous features.
PHP AnyXML
PHP AnyXML is a PHP5 class that performs read-only XML operations, providing ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.