PageCompiler: support <%@ include file="<path>" %> syntax for includes.

This commit is contained in:
Günter Obiltschnig 2017-09-08 20:54:56 +02:00
parent 64a733f27f
commit 42f824d83f
2 changed files with 30 additions and 25 deletions

View File

@ -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>" %>
----

View File

@ -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);
}