Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.331.649 Times

Posy::Docs::ProgrammerGuide 0.99

  Date Added: February 12, 2010  |  Visits: 686

Posy::Docs::ProgrammerGuide

Report Broken Link
Printer Friendly Version


Product Homepage
Download (94 downloads)



Posy::Docs::ProgrammerGuide is a guide for programmers of Posy. How Posy Works Posy has two modules which drive the whole thing: Posy and Posy::Core. Posy has been set up so that, when you give it a list of plugin modules to use, it imports them as children of each other, so that each one overrides the methods of the previous one, and/or adds new methods of its own. (see "import" in Posy for more details). What this boils down to is that, if you want to change Posys behaviour, you can (a) write methods which override existing methods, simply by writing a method with the same name, and (b) add additional functionality to Posy by writing new methods, especially new Action methods. Action methods? Okay, back to how Posy works. Posy first sets up all the Plugins with its "import" method, and then it calls its "run" method, which (a) creates a new Posy object, (b) calls "init" on the object, (c) calls "do_actions" on the object. The "do_actions" method in turn calls all the actions in the passed-in "actions" array, which should include the "do_entry_actions" method, which in turn calls all the actions in the passed-in "entry_actions" array. The entry actions are called once per entry; the "flow" actions are called once per run. Flow actions? Well, I had to have a name for them. They flow on, one after another. Posy doesnt always manipulate the Posy object itself when building up the final web page -- it manipulates the "flow-state" hash, which is passed to every flow-action. Until finally the "render_page" action takes all the separate parts of the page which have been built up (head, page_body and foot) and pastes them together and outputs them (to either a file or STDOUT). Entry actions? Entry actions are applied to each entry. One of the early flow-actions, "select_entries", picks the list of entries which are going to be in the final page, either one (for an "entry" page) or many (for a "category" or "chrono" page). Entry actions not only deal with the "flow_state" hash, but they have two other hashes that they manipulate, the "current_entry" hash, and the "entry_state" hash. The current_entry hash contains (as one would expect) information about the current entry, such as the raw content of the entry ($current_entry->{raw}) and the processed content of the entry (such as $current_entry->{body}, $current_entry->{title}) and so on. What the entry actions do is build up the "page_body" part of the page (the flow actions deal with the head and the foot). Though, actually, "head_render" and "foot_render" could be considered dual-purpose actions. Dual-purpose actions? There are some actions which can be called as either "flow" actions or "entry" actions, and change their behaviour according to whether they are called as one or the other. See "head_render" in Posy::Core for an example. They arent common, but can be useful in certain circumstances..

Requirements: No special requirements
Platforms: Linux
Keyword: Actions Entry Libraries Methods One Page Posy Posydocsprogrammerguide Programmerguide Programming
Users rating: 0/10

License: Freeware Size: 71.68 KB
USER REVIEWS
More Reviews or Write Review


POSY::DOCS::PROGRAMMERGUIDE RELATED
Modules  -  One page profile 6.x-1.13
One page profile, when used with the core profile module, allows users to edit their entire profile on one page, as opposed to a separate page for each category.Features: * Supports ordering of profile categories on the edit user page * Integrated...
10 KB  
Java Based Databases  -  One Page Order Form RapidShop 4. 3. 2003
Quick and easy to use one page order form (shopping cart). Perfect solution for wholesale companies. Integrated with PayPal, GoogleCheckout. HTML + JavaScript based. Direct from MS Excel. Free version limited up to 2 categories and up to 10 products.
390 KB  
Modules  -  One Page Advance Search 1.0
This contribution allows the search results of the advance search page to be displayed on the same page using XMLHttp (so that no page refreshes occur) thus allowing a user to refine or redo a search without clicking back. The product info is also...
 
Libraries  -  Chilkat Class Libraries for Java 9.2.1
The full suite of Chilkat components & libraries are now available for the Java programming language. Commercially licensed components include: Email (POP3 / SMTP) IMAP Zip, GZip, and Unix Compress Encryption MIME and S/MIME FTP HTTP MHT...
 
Network & Internet  -  AJAX Book Reader 1.00
AJAX Book Reader is a complete AJAX client-server application that may be used with a Web browser to display a sequence of text files one page at a time. The display style is completely controlled by a configuration file. The first application...
4.1 KB  
Project Management  -  ToDo_List_Template 5.0.2
A free simple To Do list template is provided in WORD, Excel and PDF formats. Instructions are included. The To Do List Template is easy to learn and use. A free one page action plan template is also provided to make identifying To Do's...
323.24 KB  
Application Add-Ins  -  10 Minute Work Plans 5.0.1
A simple one page template is provided in PDF form. Instructions are included on how to complete a work plan in less than 10 minutes. Examples of completed plans are provided. The Plan Template is easy to learn and use. The plan template is...
327.68 KB  
Application Add-Ins  -  10 Minute Action Plans 5.0.2
A simple one page template is provided in PDF form. Instructions are included on how to complete an action plan in less than 10 minutes. Examples of completed plans are provided. The Plan Template is easy to learn and use. The plan template is...
323 KB  
Printer Tools  -  CleverPrint 2011i 1.0
CleverPrint may reduce your printing costs by up to 50%: CleverPrint allows you to combine multiple pages on one page, to remove pages before printing or to stop the printing process after checking the output in a preview window. CleverPrint...
1024 B  
Chat  -  ARSC Really Simple Chat 3.1
ARSC is a webchat system that uses PHP and MySQL and allows comfortable chatting with every browser on the surface of this planet, using JavaScript, frames HTML streaming for modern browsers down to a one-page reload-yourself version for text...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB