Skip to content

The quick and easy way to add versatile graphical interfaces with networking capabilities to your Perl programs. Give instant access to your application to whoever you want on the Internet, without having to deploy it.

License

epeios-q37/atlas-perl

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Perl version of the Atlas toolkit

Run on Repl.it About online demonstrations

Version 0.13 license: MIT Documentation

The Atlas toolkit is available for:

Language / Demo Repositories Popularity
Java
Run on Replit
Framagit GitHub
GitLab
Stars for atlas-java
GitHub forks for atlas-java
Node.js
Run on Replit
Framagit GitHub
GitLab
Stars for atlas-node
GitHub forks for atlas-node
Perl
Run on Replit
Framagit GitHub
GitLab
Stars for atlas-perl
GitHub forks for atlas-perl
Python
Run on Replit
Framagit GitHub
GitLab
Stars for atlas-python
GitHub forks for atlas-python
Ruby
Run on Replit
Framagit GitHub
GitLab
Stars for atlas-ruby
GitHub forks for atlas-ruby

A GUI with Perl in a couple of minutes

Click the animation to see a screencast of programming this "Hello, World!" program with Perl in a matter of minutes:

Building a GUI in with Perl in less then 10 minutes

Same video on Peertube: https://q37.info/s/bvvjj7gk.

Source code:

use Atlas;
 
my $BODY = '
<fieldset>
 <input id="Input" xdh:onevent="Submit" value="World"/>
 <button xdh:onevent="Submit">Hello</button>
 <hr/>
 <fieldset>
  <output id="Output">Greetings displayed here!</output>
 </fieldset>
</fieldset>
';
 
sub acConnect {
 my ($hello, $dom) = @_;
 
 $dom->inner("", $BODY);
 $dom->focus("Input");
}
 
sub acSubmit {
 my ($hello, $dom) = @_;
 my $name = $dom->getValue("Input");
 
 $dom->begin("Output", "<div>Hello, $name!</div>");
 $dom->setValue("Input", "");
 $dom->focus("Input");
}
 
my %CALLBACKS = (
 "" => \&acConnect,
 "Submit" => \&acSubmit
);
 
Atlas::launch(\%CALLBACKS);

See for yourself right now - it's quick and easy!

Online, with nothing to install

To run above "Hello, World!" program directly in your browser, as seen in corresponding video, follow this link: https://replit.com/@AtlasTK/hello-perl.

Thanks to Replit, an online IDE, you can write and run programs using the Atlas toolkit directly in your web browser, without having to install Perl on your computer About online demonstrations.

To see more examples, like the following TodoMVC, simply:

  • go here (also accessible with the Run on Repl.it button at the top of this page),
  • click on the green Run button,
  • choose the Perl entry (this clones the corresponding GitHub repository),
  • choose the demonstration to launch,
  • wait for the application to open,
  • … and, as you wish, fork the Replit repository and run your own tests directly in your browser, by modifying the code of the examples or by writing your own code.

TodoMVC

With Perl on your computer

# You can replace 'github.com' with 'framagit.org'.
# DON'T copy/paste this and above line!
git clone https://github.com/epeios-q37/atlas-perl
cd atlas-perl/examples
perl -I ../atlastk Hello/Hello.pl

Your turn

If you want to take your code to the next level, from CLI to GUI, then you found the right toolkit.

With the Atlas toolkit, you transform your programs in modern web applications (SPA) without the usual hassles:

  • no JavaScript to write; only HTML(/CSS) and Perl,
  • no front and back end architecture to bother with,
  • no web server (Apache, Nginx…) to install,
  • no need to deploy your application on a remote server,
  • no incoming port to open on your internet box or routeur.

The Atlas toolkit is written in pure Perl, with no native code and no dependencies, allowing the Atlas toolkit to be used on all environments where Perl is available.

And simply by running them on a local computer connected to internet, applications using the Atlas toolkit will be accessible from the entire internet on laptops, smartphones, tablets…

Content of the repository

The atlastk directory contains the Perl source code of the Atlas toolkit.

The examples directory contains some examples.

To run an example, launch, from within the examples directory, perl -I../atlastk <Name>/main.pl, where <Name> is the name of the example (Blank, Chatroom…).

About

The quick and easy way to add versatile graphical interfaces with networking capabilities to your Perl programs. Give instant access to your application to whoever you want on the Internet, without having to deploy it.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages