Skip to content

Commit

Permalink
Add perl binding information to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytech committed Mar 30, 2015
1 parent 9484a7f commit 477b8ea
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,7 @@ npm install -g \
- [Python](#python)
- [Scala](#scala)
- [Clojure](#clojure)
- [Perl](#perl)
- [API Reference](#api-reference)
- [Architecture](#architecture)
- [Community](#community)
Expand Down Expand Up @@ -172,6 +173,44 @@ object Main extends App {

- **clj-thrust** [solicode/clj-thrust](https://github.com/solicode/clj-thrust)

### Perl

##### Getting Started

Install with `cpanm Thrust [--sudo]`

Simple command line test:

```
perl -MThrust -e 'Thrust->window->show->maximize->open_devtools->run'
```

Basic program

```Perl
use Thrust;

my $t = Thrust->new;

my $w = $t->window(
root_url => 'data:text/html,Hello World!',
title => 'My App',
size => { width => 800, height => 600 },
);

$w->on(closed => sub { exit });

$w->show;

$t->run; ## enter event loop
```

##### Library

- [metacpan](https://metacpan.org/pod/Thrust)
- [github](https://github.com/hoytech/Thrust)


***
## API Reference

Expand Down

0 comments on commit 477b8ea

Please sign in to comment.