<?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></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"> <ul id="index"> <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> <h1 id="NAME">NAME</h1> <p>Libconf::Templates::Lilo</p> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>Libconf::Templates::Lilo - Libconf low level template to handle lilo configuration files</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code> 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();</code></pre> <h1 id="CONSTRUCTOR">CONSTRUCTOR</h1> <dl> <dt id="new-options"><b>new($options)</b></dt> <dd> <p>creates the template</p> <pre><code> my $template = new Libconf::Templates::Lilo({ filename => '/etc/lilo.conf' });</code></pre> <p><b>options</b></p> <p>filename [<b>type</b> : STRING, <b>default</b> : ''] : 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>Libconf::Templates::Generic::KeyValue</a> and <a>Libconf::Templates::Generic::Value</a> can be also set here.</p> </dd> </dl> <h1 id="GENERAL-METHODS">GENERAL METHODS</h1> <p>See <a>Libconf::Templates</a> for the general list of methods you can call on this template.</p> <h1 id="SPECIFIC-METHODS">SPECIFIC METHODS</h1> <p>There is no specific methods</p> </body> </html>