Parent Directory | Revision Log
use new J:P:CodePress to render textarea as syntax highlighted editor
1 | package Perly::View; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use Jifty::View::Declare -base; |
7 | |
8 | template '/' => page { |
9 | h1 { _("Enter your code") } |
10 | div { show 'code_editor' } |
11 | }; |
12 | |
13 | private template 'code_editor' => sub { |
14 | form { |
15 | my $action = new_action( class => 'CreateCode' ); |
16 | render_param( $action => 'source', cols => 80, rows => 25 ); |
17 | #render_action( $action => [ 'source' => { cols => 80, rows => 30 }, ] ); |
18 | form_submit( label => _("Save my code") ); |
19 | } |
20 | }; |
21 | |
22 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |