GithubHelp home page GithubHelp logo

kgoess / p5-text-xslate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xslate/p5-text-xslate

0.0 2.0 0.0 6.43 MB

Scalable template engine for Perl5

Home Page: https://metacpan.org/release/Text-Xslate

Perl 86.48% Mathematica 0.15% Smalltalk 0.02% XS 12.17% AMPL 0.01% C 1.16%

p5-text-xslate's Introduction

NAME Build Status

Text::Xslate - Scalable template engine for Perl5

SYNOPSIS

use Text::Xslate;

my $tx = Text::Xslate->new();

my %vars = (
    title => 'A list of books',
    books => [
        { title => 'Islands in the stream' },
        { title => 'Programming Perl'      },
        # ...
    ],
);

my $template = q{
<h1><: $title :></h1>
<ul>
: for $books -> $book {
    <li><: $book.title :></li>
: } # for
</ul>
};

print $tx->render_string($template, \%vars);

INSTALLATION

Install cpanm (App::cpanminus) and then run the following command to install Xslate:

$ cpanm Text::Xslate

If you get the distribution, unpack it and build it as per the usual:

$ tar xzf Text-Xslate-{version}.tar.gz
$ cd Text-Xslate-{version}
$ perl Makefile.PL
$ make && make test

Then install it:

$ make install

If you want to install it from the repository, you must install authoring tools.

$ cpanm < author/requires.cpanm

DOCUMENTATION

Text::Xslate documentation is available as in POD. So you can do:

$ perldoc Text::Xslate

to read the documentation online with your favorite pager.

RESOURCE

web site:       http://xslate.org/
repositories:   https://github.com/xslate
issue tracking: https://github.com/xslate/p5-Text-Xslate/issues

LICENSE AND COPYRIGHT

Copyright (c) 2010, Fuji, Goro (gfx). All rights reserved.

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

MAINTAINERS

p5-text-xslate's People

Contributors

andrewalker avatar anirvan avatar bluescreen10 avatar c9s avatar charsbar avatar dallaylaen avatar doy avatar dsteinbrunner avatar gfx avatar gunyarakun avatar gunyoki avatar hanabokuro avatar hiratara avatar hitode909 avatar hugmeir avatar jscook avatar knowledgejunkie avatar lestrrat avatar makamaka avatar mons avatar moznion avatar nihen avatar oalders avatar punytan avatar syohex avatar tokuhirom avatar wchristian avatar yappo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.