BSD Ports

lang/p5-Data-JavaScript 1.13 MidnightBSD

Data::JavaScript - Dump perl structures to JavaScript code

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
lang, www, perl5

Description

This module is aimed mainly for CGI programming, when a perl script generates a page with client side JavaScript code that needs access to structures created on the server.

It works by creating one line of JavaScript code per datum. Therefore, structures cannot be created anonymously and needed to be assigned to variables. This enables dumping big structures.

In the other systems

SystemPortVersion
MidnightBSDlang/p5-Data-JavaScript1.13
FreeBSDlang/p5-Data-JavaScript1.13_1
DragonFlylang/p5-Data-JavaScript1.13_1

Install

Binary package:

mport install p5-Data-JavaScript

From mports:

cd /usr/mports/lang/p5-Data-JavaScript && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Data-JavaScript>0:lang/p5-Data-JavaScript

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
perl5 tar:tgz
Service scripts
none

Files

pkg-plist 3
  • %%SITE_PERL%%/Data/JavaScript.pm
  • %%SITE_PERL%%/Data/example.pl
  • %%PERL5_MAN3%%/Data::JavaScript.3.gz
distinfo 1
FileSizeSHA256
Data-JavaScript-1.13.tgz76683b2ea37c6261552bb6fb39ae83c1546c82d9db03474ffa802c170873f6ba88a3
Master sites 1
  • CPAN