<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lilo.pm</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:root@localhost" /> </head> <body style="background-color: white"> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#constructor">CONSTRUCTOR</a></li> <li><a href="#general_methods">GENERAL METHODS</a></li> <li><a href="#specific_methods">SPECIFIC METHODS</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Libconf::Templates::Lilo</p> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>Libconf::Templates::Lilo - Libconf low level template to handle lilo configuration files</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> my $template = new Libconf::Templates::Lilo({ filename => '/etc/lilo.conf' }); $template->edit_atom(-1, { key => 'label', value => 'linux', sections => [ {name => '/boot/bzImage'} ], }, { key => 'label', value => 'linux_foo', sections => [ {name => '/boot/bzImage_foo'} ], }); ... (see L<Libconf::Templates> for transformation methods on $template) ... $template->write_conf();</pre> <p> </p> <hr /> <h1><a name="constructor">CONSTRUCTOR</a></h1> <dl> <dt><strong><a name="new" class="item"><strong>new($options)</strong></a></strong></dt> <dd> <p>creates the template</p> <pre> my $template = new Libconf::Templates::Lilo({ filename => '/etc/lilo.conf' });</pre> <p><strong>options</strong></p> <p>filename [<strong>type</strong> : STRING, <strong>default</strong> : ''] : the filename of the config file you want to work on. Can be read and written lately by using set_filename and get_filename.</p> <p>Others options taken from <a href="./Libconf/Templates/Generic/KeyValue.html">the Libconf::Templates::Generic::KeyValue manpage</a> and <a href="./Libconf/Templates/Generic/Value.html">the Libconf::Templates::Generic::Value manpage</a> can be also set here.</p> </dd> </dl> <p> </p> <hr /> <h1><a name="general_methods">GENERAL METHODS</a></h1> <p>See <a href="./Libconf/Templates.html">the Libconf::Templates manpage</a> for the general list of methods you can call on this template.</p> <p> </p> <hr /> <h1><a name="specific_methods">SPECIFIC METHODS</a></h1> <p>There is no specific methods</p> </body> </html>