The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Text::MustacheTemplate::Lexer - Simple mustache template lexer

SYNOPSIS

    use Text::MustacheTemplate::Lexer;

    # change delimiters
    # local $Text::MustacheTemplate::Lexer::OPEN_DELIMITER = '<%';
    # local $Text::MustacheTemplate::Lexer::CLOSE_DELIMITER = '%>';

    my @tokens = Text::MustacheTemplate::Lexer->tokenize('* {{variable}}');

DESCRIPTION

Text::MustacheTemplate::Lexer is a simple lexer for Mustache tempalte.

This is low-level interface for Text::MustacheTemplate. The APIs may be change without notice.

METHODS

tokenize

TOKENS

TOKEN_RAW_TEXT
TOKEN_PADDING
TOKEN_TAG
TOKEN_DELIMITER

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura <karupa@cpan.org>