Candy

Embed global variables in page content.

0 stars out of 5

0 0 0 0 0
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 1.5.1
Table of Contents
  1. Page
  2. Site
  3. State
  4. Time
  5. URL
  6. Custom

Common patterns:

Page

  • %{page.url}%
  • %{page.title}%
  • %{page.description}%
  • %{page.link}%
  • %{page.author}%

Site

  • %{site.title}%
  • %{site.description}%
  • %{site.language}%

State

  • %{state.title}%
  • %{state.description}%
  • %{state.language}%

Time

  • %{time.year}%
  • %{time.month}%
  • %{time.en}%

URL

  • %{url}%
  • %{url.protocol}%
  • %{url.host}%
  • %{url.port}%
  • %{url.d}%
  • %{url.i}%
  • %{url.path}%
  • %{url.query}%
  • %{url.current}%

Custom

Add your custom syntax or replace the default syntax in the v property, remove the default syntax in x:

[
    'v' => [
        'asset' => 'http://127.0.0.1/lot/asset'
        …
    ],
    'x' => [ … ]
]

0 Comments

No comments yet.