Russian Apache mailing list archive (apache-rus@lists.lexa.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: [apache-talk] Interpreter
> объяснить, чтоб он шаблон делал примерно так:
>
> <table cellspacing=0 cellpadding=0 border=0 width=602>
> <tr><td width=191 valign="top"><img src="images/menu.gif"></td>
> <td width=401 valign="top">
> <br>
> <!-- %LOOP CategoriesByParent(CC.id) -->
> <!-- %MKDIR @@category.sename@@ -->
> <font face="sans-serif"><b>
> <a href="@@category.sename@@/index.html">@@category.name@@</a>
> </b></font><br>
> <!-- %END LOOP -->
> <!-- %LOOP ProductsByCathegory(CC.id) -->
> <!-- %MKFILE @@product.id@@.html -->
> <font face="sans-serif">
> <a href="@@product.id@@.html">@@product.name@@</a>
> </font><br>
> <!-- %END LOOP -->
> </td></tr>
> </table>
Так может тут sed-ом обойтись?
А прогу на PHP наваять?
sed -e 's/%MKDIR/mkdir(\"/path/to/my/dir\", 0700);/g'
<template1.html>page1.php3
и т.д.
Вадим Чекан.
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
Спонсоры сайта:
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE .
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin . Design (C) 1998 Max Smolev.