mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-10 20:27:55 +01:00
PageCompiler: support <%@ include file="<path>" %> syntax for includes.
This commit is contained in:
parent
64a733f27f
commit
42f824d83f
@ -130,6 +130,11 @@ Example:
|
||||
Another CPSP file can be included into the current file using the Include
|
||||
Directive.
|
||||
|
||||
<%@ include file="<path>" %>
|
||||
----
|
||||
|
||||
Alternatively, this can also be written as:
|
||||
|
||||
<%@ include page="<path>" %>
|
||||
----
|
||||
|
||||
|
@ -309,7 +309,7 @@ void PageReader::nextToken(std::istream& istr, std::string& token)
|
||||
|
||||
void PageReader::handleAttribute(const std::string& name, const std::string& value)
|
||||
{
|
||||
if (name == "include.page")
|
||||
if (name == "include.page" || name == "include.file")
|
||||
{
|
||||
include(value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user