Ujumla

Read Config::General/Apache style configuration

Ujumla

Read Apache/Config-General config files in Raku

image https://github.com/jonathanstowe/Ujumla/workflows/CI/badge.svg not found

Synopsis


use Ujumla;

my $config = Ujumla.new( config-text => q:to/EIEIO/);
# Some comment
name "something or other"
<Section>
   section-name  whatever
</Section>
EIEIO

say $config.get-item('name'); # "something or other"
say $config.get-item('Section', 'section-name'); # "whatever"

Description

This module aims to be able to read those configuration files that can be read by the Perl 5 module Config::General which in itself supports a superset of the Apache httpd configuration syntax.

I haven't named it Config::General because I wouldn't want to take the name from someone who might be able to do better and because I don't want to raise the expectation that this is a port of the Perl 5 module - the interface and options are likely to differ wildly from that module. It is instead named for the first search result for "Swahili for General".

You can find the fuller documentation here.

Installation

Assuming you have a working Rakudo compiler you should be able to install this with zef :

zef install Ujumla

# Or from a local clone

zef install .

Support

If you have any suggestions, complaints or patches please direct them to Github

The chances are that this won't parse every conceivable configuration file, so if you find something that you think it should parse but doesn't a failing test case would be much appreciated.

Licence & Copyright

This is free software please see the LICENCE file.

Ā© Jonathan Stowe 2020 - 2021

Ujumla v0.0.4

Read Config::General/Apache style configuration

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Ujumla

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.