Sha256: 7f58cabd5855c4324c1b22c984e29f33e42c39cfb971c768891e162cb6ba8ad0

Contents?: true

Size: 1.12 KB

Versions: 13

Compression:

Stored size: 1.12 KB

Contents

---
title:  Only for :pro
layout: template-logo-small
exclude:
 - :free
---

# <%= current_page.data.title %>

This page is only available to targets that are not `:free`; in this sample
project, that means that only the `:pro` target will make this page available
during build or while running the server.

This is accomplished by using the `exclude` key in the
[front matter](frontmatter.html) data, and excluding the `:free` target.

~~~ erb
---
title:  Only for :pro
layout: template-logo-small
exclude:
 - :free
---
~~~

Note that `exclude` is a YAML array; you can include multiple `exclude` targets
and/or features here.
{:.note}

<% content_for :seeAlso do %>
<ul>
<li><a href="index.html">Welcome to middleman-targets</a></li>
<li><a href="simple-demo.html">Simple features demonstration</a></li>
<li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
<li><a href="target-feature-config.html">Configuration</a></li>
<li><a href="helpers-resources.html">Helpers and Resources</a></li>
<li><a href="frontmatter.html">Front Matter</a></li>
<li><a href="cli.html">Command Line Interface</a></li>
</ul>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
middleman-targets-1.0.14 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.13 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.12 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.11 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.10 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.9 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.8 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.7 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.6 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.5 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.4 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.3 documentation_project/source/only-pro.html.md.erb
middleman-targets-1.0.2 documentation_project/source/only-pro.html.md.erb