mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-27 07:02:15 +00:00
Quickbook: Use values for templates and snippets.
[SVN r70528]
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
|
||||
#include <cassert>
|
||||
#include "template_stack.hpp"
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
@@ -14,6 +16,23 @@
|
||||
|
||||
namespace quickbook
|
||||
{
|
||||
template_body::template_body(
|
||||
value const& content,
|
||||
fs::path const& filename
|
||||
)
|
||||
: content(content.store())
|
||||
, filename(filename)
|
||||
{
|
||||
assert(content.get_tag() == template_tags::block ||
|
||||
content.get_tag() == template_tags::phrase);
|
||||
}
|
||||
|
||||
bool template_body::is_block() const
|
||||
{
|
||||
return content.get_tag() == template_tags::block;
|
||||
}
|
||||
|
||||
|
||||
template_stack::template_stack()
|
||||
: scope(template_stack::parser(*this))
|
||||
, scopes()
|
||||
|
||||
Reference in New Issue
Block a user