03-25-2010
I'll second the nomination for Wordpress. I don't use it on my site because I'm a total control freak and don't like Php, but it really is the easiest way to get started and has enough legs to take you a long way.
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
I have a small problem, there is one Win98 PC on our network, and I would like to map the FTP server that we have as one of the Win98's machine's local drives. I am by no means a Windows expert, instead my area is *NIX. The webserver is just a regualar webserver, within the LAN. I tried... (18 Replies)
Discussion started by: cerberusofhate
18 Replies
2. UNIX for Dummies Questions & Answers
hi,
im a newbie using unix. My local computer OS is Windows XP while server is
using Unix. May i know how to transfer file from local computer to server? i do not know the commands.
Thanks. :) (3 Replies)
Discussion started by: sagolo
3 Replies
3. Shell Programming and Scripting
I have always wanted to create my own site, I've only had one class about the basics in creating web pages but know i would like to get into more and more detailed info about doing so anyone with alot of experience please help me out.:b: (0 Replies)
Discussion started by: kprescod4158
0 Replies
4. Cybersecurity
Anyone else seeing this error on every search result on Google today:
This site may harm your computer.
Which links to this page:
Malware Warning
Which says: (10 Replies)
Discussion started by: Neo
10 Replies
5. Shell Programming and Scripting
Hi All, I am new in Shell Script. I have a ksh script running in the Unix Server and basically in that script I need to create a text file but the text file has to be generated in the local PC (the user computer such as in C:\ drive). I have no idea on how to do it and I need it pretty urgently.... (2 Replies)
Discussion started by: yramli
2 Replies
6. Red Hat
hi all,
i'm creating an sftp site to my company. how do i make an id to have multiple connection so that it will be use for sftp login? and how do i change to different default path?
thanks and more power for all your comments. (4 Replies)
Discussion started by: itik
4 Replies
7. HP-UX
How do I configure site-local IPv6 address in HP-UX box?
I can get link local IPv6 address automatically when I put IPv6 up.
aps39-88-root# ifconfig lan0 inet6 up (0 Replies)
Discussion started by: kirtikjr
0 Replies
8. UNIX for Advanced & Expert Users
I have 20 Servers (They are Windows 2003) that I remote every day using names or IP address and type in my username & Password then copy folders manually to my local computer.
I'm wondering if i can just run script(s) from my local computer to do this job without using FTP(because of security... (5 Replies)
Discussion started by: idiazza
5 Replies
9. UNIX for Dummies Questions & Answers
Can someone please help me with copying from remote computer to local computer? I have Winscp installed but for some reason i can seem to get into the server using winscp.
I am currently logged on to the server, so its not a case of remote host unavailable. I really am not sure if the syntax... (2 Replies)
Discussion started by: dollypee
2 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I have a problem with ftp execution within unix environment.
I'd like to get files on remote and delete them later, but here is too crowd so I can accidentally delete some files. Can I delete only the files I can get to the local folder? I can ask this question with a different... (14 Replies)
Discussion started by: attillam
14 Replies
LEARN ABOUT DEBIAN
mojolicious::routes
Mojolicious::Routes(3pm) User Contributed Perl Documentation Mojolicious::Routes(3pm)
NAME
Mojolicious::Routes - Always find your destination with routes
SYNOPSIS
use Mojolicious::Routes;
# New routes tree
my $r = Mojolicious::Routes->new;
# Normal route matching "/articles" with parameters "controller" and
# "action"
$r->route('/articles')->to(controller => 'article', action => 'list');
# Route with a placeholder matching everything but "/" and "."
$r->route('/:controller')->to(action => 'list');
# Route with a placeholder and regex constraint
$r->route('/articles/:id', id => qr/d+/)
->to(controller => 'article', action => 'view');
# Route with an optional parameter "year"
$r->route('/archive/:year')
->to(controller => 'archive', action => 'list', year => undef);
# Nested route for two actions sharing the same "controller" parameter
my $books = $r->route('/books/:id')->to(controller => 'book');
$books->route('/edit')->to(action => 'edit');
$books->route('/delete')->to(action => 'delete');
# Bridges can be used to chain multiple routes
$r->bridge->to(controller => 'foo', action =>'auth')
->route('/blog')->to(action => 'list');
# Simplified Mojolicious::Lite style route generation is also possible
$r->get('/')->to(controller => 'blog', action => 'welcome');
my $blog = $r->under('/blog');
$blog->post('/list')->to('blog#list');
$blog->get(sub { shift->render(text => 'Go away!') });
DESCRIPTION
Mojolicious::Routes is the core of the Mojolicious web framework.
See Mojolicious::Guides::Routing for more.
ATTRIBUTES
Mojolicious::Routes inherits all attributes from Mojolicious::Routes::Route and implements the following new ones.
"base_classes"
my $classes = $r->base_classes;
$r = $r->base_classes(['MyApp::Controller']);
Base classes used to identify controllers, defaults to Mojolicious::Controller and Mojo.
"cache"
my $cache = $r->cache;
$r = $r->cache(Mojo::Cache->new);
Routing cache, defaults to a Mojo::Cache object.
# Disable caching
$r->cache(0);
"conditions"
my $conditions = $r->conditions;
$r = $r->conditions({foo => sub {...}});
Contains all available conditions.
"hidden"
my $hidden = $r->hidden;
$r = $r->hidden([qw(attr has new)]);
Controller methods and attributes that are hidden from routes, defaults to "attr", "has" and "new".
"namespace"
my $namespace = $r->namespace;
$r = $r->namespace('Foo::Bar::Controller');
Namespace used by "dispatch" to search for controllers.
"shortcuts"
my $shortcuts = $r->shortcuts;
$r = $r->shortcuts({foo => sub {...}});
Contains all available shortcuts.
METHODS
Mojolicious::Routes inherits all methods from Mojolicious::Routes::Route and implements the following ones.
"add_condition"
$r = $r->add_condition(foo => sub {...});
Add a new condition.
"add_shortcut"
$r = $r->add_shortcut(foo => sub {...});
Add a new shortcut.
"auto_render"
$r->auto_render(Mojolicious::Controller->new);
Automatic rendering.
"dispatch"
my $success = $r->dispatch(Mojolicious::Controller->new);
Match routes with Mojolicious::Routes::Match and dispatch.
"hide"
$r = $r->hide(qw(foo bar));
Hide controller methods and attributes from routes.
"route"
my $route = $r->route;
my $route = $r->route('/:action');
my $route = $r->route('/:action', action => qr/w+/);
my $route = $r->route(format => 0);
Generate route matching all HTTP request methods.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Routes(3pm)