Sha256: 86b535e5db497cd5bf727cdea6ecb2a6b8be60111016e1eb6ec5b99cd3c3626a

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

Stored size: 1.49 KB

Contents

---
title:  Helpers and Resources
layout: template-logo-medium
---

# <%= current_page.data.title %>

`middleman-targets` includes some helpers and some page resources that make
working with multiple targets easier. Most of them are demonstrated at [Simple
features demonstration](simple-demo.html).

## Extended Helpers

`middleman-targets` extends built-in **Middleman** helpers with optional, new
functionality.

<%= partial 'partials/yard_helpers_extended' %>

* * *

## Helpers

These helpers make it simple to target exactly what you intend to.

<%= partial 'partials/yard_helpers' %>

* * *

## Resources

Middleman’s resource list is available to all of your templates and pages, and
also available for your own helpers, and `middleman-targets` provides a couple
of resource map additions than can prove useful when developing your own
helpers.

<%= partial 'partials/yard_resources' %>

* * *

### Example

The raw output of `<%%= current_page.valid_features %>` on this page is 
`<%= current_page.valid_features %>`. The output will be different if you switch
targets.


<% 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="frontmatter.html">Front Matter</a></li>
<li><a href="cli.html">Command Line Interface</a></li>
</ul>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
middleman-targets-1.0.8 documentation_project/source/helpers-resources.html.md.erb
middleman-targets-1.0.7 documentation_project/source/helpers-resources.html.md.erb
middleman-targets-1.0.6 documentation_project/source/helpers-resources.html.md.erb