| 1 | package Padre::Document::WebGUI::Asset::Snippet; | ||
| 2 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | $Padre::Document::WebGUI::Asset::Snippet::VERSION = '1.002'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: Padre::Document::WebGUI::Asset::Snippet subclass representing a WebGUI Snippet | ||
| 7 | |||
| 8 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 0 | ▶ | use Padre::Logger; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 11 | use Padre::Document::WebGUI::Asset; | ||
| 12 | |||
| 13 | our @ISA = 'Padre::Document::WebGUI::Asset'; | ||
| 14 | |||
| 15 | |||
| 16 | sub lexer { | ||
| 17 | my $self = shift; | ||
| 18 | my $mimetype = $self->asset->{mimetype}; | ||
| 19 | TRACE("Snippet mimetype: $mimetype") if DEBUG; | ||
| 20 | Padre::MimeTypes->get_lexer( $mimetype || 'text/html' ); | ||
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | 1; | ||
| 25 | |||
| 26 | __END__ | ||