Sponsored Content
Full Discussion: .NET Alternative
Top Forums UNIX for Dummies Questions & Answers .NET Alternative Post 68715 by goon12 on Wednesday 6th of April 2005 12:07:18 PM
Old 04-06-2005
Well I have kind of simulated ASP.NET's event driven model, using JSP/Servlets and implementing AJAX. Seems to do the trick.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

alternative for Archieve

Hi all , In order to zip the file ... first we need to use TAR and then GZIP on the TAR file ..... Is there any other method for zipping the files directly as in windows ( winzip ) Regards, Dhananjay (3 Replies)
Discussion started by: dhananjayk
3 Replies

2. Shell Programming and Scripting

Using awk (or an alternative)

Hi, I'm trying to echo a variable that has values separated by colons, putting each value on a new line. So as an example, a variable I might have would contain: My name is Earl:My name is Dorothy:My name is Bernard: And I want the output: My name is Earl My name is Dorothy My name... (5 Replies)
Discussion started by: michaeltravisuk
5 Replies

3. Shell Programming and Scripting

help with while loop or any other alternative?

i=1 while do mm=02 dd=03 yy=2008 echo "$mm$dd$yy" i=$(( i+1)) echo "$i" done whenever i execute the script above i will get the error below: syntax error at line 30: `i=$' unexpected (3 Replies)
Discussion started by: filthymonk
3 Replies

4. Shell Programming and Scripting

Net::SSLeay or Net::FTPSSL

Hello, I ran into an issue in one of my monitoring scripts. If I use the public ip address in my connection string everything works, but if I switch the connection string ip to 127.0.0.1 or the internal ip I get, " Connection refused at... (1 Reply)
Discussion started by: Styles
1 Replies

5. Shell Programming and Scripting

Alternative for wc -l

Hi techies .. This is my first posting hr .. Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db I have used wc -l to confirm whether the loader... (14 Replies)
Discussion started by: rajesh_2383
14 Replies

6. Solaris

vi alternative

Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi? I'd like to avoid installing anything new. If not, how to make vi more user-friendly? thanks. (8 Replies)
Discussion started by: orange47
8 Replies

7. Shell Programming and Scripting

Getopts alternative

Hi, Does anyone have an example of parsing command line arguments similar to how getopts parse command line arguments? I am looking at a getopts alternative because I want to have the same parsing on the subroutine/function in the script. For example, I want to be able to do test.ksh -p 1... (4 Replies)
Discussion started by: newbie_01
4 Replies
MicroMason::ServerPages(3pm)				User Contributed Perl Documentation			      MicroMason::ServerPages(3pm)

NAME
Text::MicroMason::ServerPages - Alternate Syntax like ASP/JSP Templates SYNOPSIS
Instead of using this class directly, pass its name to be mixed in: use Text::MicroMason; my $mason = Text::MicroMason::Base->new( -ServerPages ); Use the standard compile and execute methods to parse and evalute templates: print $mason->compile( text=>$template )->( @%args ); print $mason->execute( text=>$template, @args ); Server Pages syntax provides another way to mix Perl into a text template: <% my $name = $ARGS{name}; if ( $name eq 'Dave' ) { %> I'm sorry <%= $name %>, I'm afraid I can't do that right now. <% } else { my $hour = (localtime)[2]; my $daypart = ( $hour > 11 ) ? 'afternoon' : 'morning'; %> Good <%= $daypart %>, <%= $name %>! <% } %> DESCRIPTION
This subclass replaces MicroMason's normal lexer with one that supports a syntax similar to Active Server Pages and Java Server Pages. Compatibility with Apache::ASP Apache::ASP is a full-featured application server toolkit with many fatures, of which only the templating functionality is emulated. This is not a drop-in replacement for Apache::ASP, as the implementation is quite different, but it should be able to process some existing templates without major changes. The following features of EmbPerl syntax are supported: o Angle-bracket markup tags The following syntax features of are not supported: o Dynamic XML/XSL processing. o Web server objects such as $Session, $Request, $Response, and $Application. o Application events such as Application_OnStart, Script_OnStart, and other gloga.asa features. Template Syntax The following elements are recognized by the ServerPages lexer: o <% perl statements %> Arbitrary Perl code to be executed at this point in the template. o <%= perl expression %> A Perl expression to be evaluated and included in the output. o <%& file, arguments %> Includes an external template file. o <%-- comment --%> Documentation or inactive code to be skipped over silently. Can also be used to quickly comment out part of a template. o <%name> ... </%name> Supported block names are: 'perl', 'args', 'once', 'init', 'cleanup', and 'doc'. Private Methods lex_token ( $type, $value ) = $mason->lex_token(); Lexer for <% ... %> tags. Attempts to parse a token from the template text stored in the global $_ and returns a token type and value. Returns an empty list if unable to parse further due to an error. SEE ALSO
For an overview of this templating framework, see Text::MicroMason. This is a mixin class intended for use with Text::MicroMason::Base. For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe. perl v5.10.1 2007-01-29 MicroMason::ServerPages(3pm)
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy