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

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

Serving Software Downloads in 976 Categories, Downloaded 29.990.344 Times

OpenInteract::UI::Main 1.62

  Date Added: August 06, 2010  |  Visits: 604


Report Broken Link
Printer Friendly Version

Product Homepage
Download (72 downloads)

OpenInteract::UI::Main is the primary user interface assembly conductor. SYNOPSIS my $page = OpenInteract::UI::Main->handler(); send_http_headers(); print $page; # Subclass to define a new method for looking up template names: package OpenInteract::UI::LanguageChoice; use base qw( OpenInteract::UI::Main ); my $DEFAULT_LANGUAGE = en; sub choose_template { my ( $class ) = @_; my ( $language ); if ( $R->{auth}{is_logged_in} ) { $language = $R->{auth}{user}->language; } $language ||= $R->apache->param( lang ) || $R->{session}{lang} || $DEFAULT_LANGUAGE; my $R = OpenInteract::Request->instance; my $template = $R->{theme}->property_value( "template_$language" ) || $R->{theme}->property_value( main_template ); return $template; } This is the handler that puts the main content generated together with the template that surrounds the content on every page. The action has already been parsed from the URL for us so we look up the class/method used to generate the content and call them. We then put that content into the main template which is specified in our theme, unless we have received another directive to use a separate template or no template at all. Another alternative is that the content handler needs to return a file that is not HTML, such as a PDF, graphic, word processing document, archive, or whatever. If so the content handler should put the complete filename in the $R->{page}->{send_file} key. A content author can set a main template to use for the generated content by setting: $R->{page}{_template_name_} to the name of the template to use. This should be a fully-qualified template name -- such as mypkg::mytemplate. If you do not specify a package the OI template provider will try to find the template in the global template directory. You can also set a template that might vary by theme. This is not the name of the template directly but rather a placeholder within the theme which holds the name of the template. For instance, say you created a spooky_template and implemented it in multiple themes. Even though you as an author do not know what theme will be used, you can still pick the right template by setting: $R->{page}{_template_key_} And to use the simple template, the author should set: $R->{page}{_simple_} to a true value. The default simple template is base_simple, although you can set its name under the template_names key of your server configuration. Finally, the author can also set: $R->{page}{_no_template_} to display the content without a template at all. Main Template Variables Any content handler can send information to be placed directly onto the main template by setting information using the $R->{main_template_vars} hashref. For instance: $R->{main_template_vars}{current_weather} = Rainy and cold; would set the current_weather template variable for display on the main template and not on any of the content handlers. Note that while this sounds useful (and it can be), you will probably use it only very rarely. The boxes concept is more comprehensive and full-featured and will almost certainly do what you need..

Requirements: No special requirements
Platforms: Linux
Keyword: Content Language Libraries Main Openinteract Openinteractuimain Page Programming R- Template Ui User Interface
Users rating: 0/10

License: Freeware Size: 655.36 KB
Utilities  -  Enveria IDE for Rapid Application Development 0.3
Enveria IDE for Rapid Application Development is an intuitive platform for programming robust GUI (graphical user interface) software. We have launched the Enveria RAD IDE as an open source application (
942.08 KB  
Utilities  -  Xwpe-ALPHA 1.5.30a
Xwpe is a programming environment with a user interface that mimics the Borland C and Pascal family of products. The user interface mimics the Borland C and Pascal family of products for MS-DOS. From within xwpe you can edit, compile, and debug...
225.28 KB  
Home & Leisure  -  Windows Server 2008 R2 SP1 Multilingual User Interface Language Packs 2483139
Multilingual User Interface (MUI) Language Packs (Windows Server Language Packs) will allow you to enable a multilingual user interface in a Windows Server 2008 R2 environment. Adding one or more language packs to a Windows Server 2008 R2 image...
Games  -  Backgammon 1x1 1
Backgammon 1x1 is an exciting multiplayer backgammon game! Main features: -two players -select checkers easily! -great user interface -sound -dice animation Requirements: iOS 5.0 or later. Compatible with iPhone, iPad,...
3.9 MB  
Utilities  -  Grig 0.7.2
Grig is a graphical user interface for the Ham Radio Control Libraries. Grig project is intended to be simple and generic, presenting to the user the same interface regardless of which radio he or she uses. Grig is in an early stage with only...
450.56 KB  
Development Editors  -  GXDirector
GXDirector is a powerful Open Source software for product development, quality control, maintenance and general device control. With GXDirector you can read property values from a physical device, edit them if needed, and write new values back to...
16.43 MB  
Libraries  -  C/Invoke 1.0
C/Invoke is a library for connecting to C libraries at runtime. This differs from the typical method of interfacing with C, which involves writing static definitions which are then compiled to a machine-dependant format. C/Invoke provides a...
71.68 KB  
Programming  -  The Complex Language 0.1
The Complex Language project is an object oriented programming language intended for scripting or rapid prototyping of applications. The design goals were to have very few simple but powerful concepts and to be easy to use and easy to learn. The...
133.12 KB  
Code Management Tools  -  X Language 0.7.1
X Language is a new multi-syntax programming including a portable set of APIs to create console or graphical applications runnable on many platforms (UNIX/X11, Win32, ...). X Language comes with an interpreter, a compiler and a debugger. X...
358.4 KB  
Development Editors  -  newLISP 10.3.10 Dev
newLISP is a LISP-like scripting language that will help you in: programming for the internet, system administration, text processing, gluing other programs together, etc. newLISP is a scripting LISP for people who are fascinated by LISP's beauty...
1024 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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