VERSION

SYNOPSIS

DESCRIPTION

This plugin is a Dancer2 port of the wonderful http://showterm.io, which allows terminal screen captures taken via the UNIX tool script to be replayed in the browser.

The plugin will intercept any request for files with a .showterm extension and will generate an html page that will be able to replay the same file, but with the .typescript extension.

In other words, if you put the file mysession.typescript in the public folder of the app, then the url /mysession.showterm will display its webified version. The webified version can also be embedded in other pages via iframes:

Note that the typescript file the plugin uses is the concatenation of the original produced typescript with its timing file, separated with a type dash on a single line.

ADDED ROUTES

/showterm/*

The plugin adds the javascript and stylesheets assets required by the webified typescript under /showterm. Those are bundled with the plugin as shared tarball. If you want to see where this tarball is on your filesystem, you can do

use Dancer2;
use Dancer2::Plugin::Showterm;
app->find_plugin('Dancer2::Plugin::Showterm')->assets_dir;

CONFIGURATION

stylesheet

SEE ALSO

Alternative solution. Arguably simpler to embed (see https://asciinema.org/docs/embedding) as the project provides the required css and js files -- which mean it doesn't require any extra Dancer plugin like this one.

AUTHOR

Yanick Champoux <yanick@babyl.dyndns.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Yanick Champoux.

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

Module Install Instructions

To install Dancer2::Plugin::Showterm, simply copy and paste either of the commands in to your terminal

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.