From 2bec6f9650bd1eea3b8bc9b91b8b79452677e4bd Mon Sep 17 00:00:00 2001
From: Markus Sanin Now we have defined our transitions, the next step is to replace Embers native 2. Replace outlets in your templates
\{{outlet}}
in your
-template files. You should replace it with the outlet component by Liquid Fire: \{{#liquid-outlet}}
. It is
+template files. You should replace it with the outlet component by Liquid Fire: <LiquidOutlet />
. It is
most likely that you will find this \{{outlet}}
in your application template file. So now your
app/templates/application.hbs might look like this.
Remember, you will have to include a
-\{{liquid-outlet}}
in any nested route's master template. Otherwise, there will be no transition visible.
+<LiquidOutlet />
in any nested route's master template. Otherwise, there will be no transition visible.
This is how Ember works. A nested master template contains \{{outlet}}
by default and you should overwrite
-it with a \{{liquid-outlet}}
. But that is easy, right?
<LiquidOutlet />
. But that is easy, right?
diff --git a/docs/app/templates/helpers-documentation/index.hbs b/docs/app/templates/helpers-documentation/index.hbs
index ca6d205d..8053b87a 100644
--- a/docs/app/templates/helpers-documentation/index.hbs
+++ b/docs/app/templates/helpers-documentation/index.hbs
@@ -8,7 +8,7 @@
- If you pass a block to\{{#liquid-bind}}, each new version of your
+ If you pass a block to <LiquidBind />
, each new version of your
bound value will cause the block to render
@@ -12,12 +12,12 @@ map to decide how to animate when the bound value changes.
Saying
- \{{liquid-bind value=someValue}}
+ <LiquidBind @value=\{{this.someValue}} />
is a drop-in
replacement for
- \{{someValue}}
+ \{{this.someValue}}
, except this wraps the
content in markup so that it can be targeted for animation. See the
@@ -31,7 +31,7 @@ Options
There is also a block form of
- \{{#liquid-bind}}
+ <LiquidBind> </LiquidBind>
that
is
diff --git a/docs/app/templates/helpers-documentation/liquid-if.hbs b/docs/app/templates/helpers-documentation/liquid-if.hbs
index 8ea5c6c3..d259ddb0 100644
--- a/docs/app/templates/helpers-documentation/liquid-if.hbs
+++ b/docs/app/templates/helpers-documentation/liquid-if.hbs
@@ -41,7 +41,7 @@ normal
@@ -43,7 +43,7 @@
does,
including named outlets (like
The library provides helpers
-like
The following three constraints apply to route names. They will only work with
- \{{#liquid-unless}}
+ <LiquidUnless> </LiquidUnless>
is the complement to
diff --git a/docs/app/templates/helpers-documentation/liquid-outlet.hbs b/docs/app/templates/helpers-documentation/liquid-outlet.hbs
index f0fd9d22..d5d655fc 100644
--- a/docs/app/templates/helpers-documentation/liquid-outlet.hbs
+++ b/docs/app/templates/helpers-documentation/liquid-outlet.hbs
@@ -1,7 +1,7 @@
{{!-- template-lint-disable no-unbalanced-curlies --}}
- \{{liquid-outlet}}
+ <LiquidOutlet />
- \{{liquid-outlet inputOutletName="sidebar"}}
+ <LiquidOutlet @inputOutletName="sidebar" />
).
- \{{#liquid-spacer}}
+ <LiquidSpacer />
- \{{#liquid-spacer}}
+ <LiquidSpacer />
is a component that animates its
own width and height to match the width and height of its
diff --git a/docs/app/templates/index.hbs b/docs/app/templates/index.hbs
index d3507ecd..eb94fbdd 100644
--- a/docs/app/templates/index.hbs
+++ b/docs/app/templates/index.hbs
@@ -22,7 +22,7 @@ template helpers, the transition map, and transitions.Template Helpers
\{{liquid-outlet}}
, \{{liquid-if}}
,
+like <LiquidOutlet />
, <LiquidIf />
,
etc, that are nearly drop-in replacements for the equivalent normal
Ember helpers. The key difference is that they don't update instantly
when bound data changes. Instead they consult your application's
diff --git a/docs/app/templates/transition-map/outlet-constraints.hbs b/docs/app/templates/transition-map/outlet-constraints.hbs
index 3afaf174..f706b587 100644
--- a/docs/app/templates/transition-map/outlet-constraints.hbs
+++ b/docs/app/templates/transition-map/outlet-constraints.hbs
@@ -8,16 +8,16 @@
The following constraint applies to oulet names.
It will only work with
- \{{liquid-outlet}}
+ <LiquidOutlet />
because only
- \{{liquid-outlet}}
+ <LiquidOutlet />
has access to it's own name.
(The other helpers like
- \{{liquid-if}}
+ <LiquidIf />
) don't know anything about outlets.)
- \{{liquid-outlet}}
+ <LiquidOutlet />
because only
- \{{liquid-outlet}}
+ <LiquidOutlet />
has visibility into routes. (The other helpers like
- \{{liquid-if}}
+ <LiquidIf />
) don't know anything about routes.)
- \{{liquid-outlet}}
+ <LiquidOutlet />
.
- \{{liquid-bind}}
+ <LiquidBind />
match against its own bound contexts.
- \{{liquid-if}}
+ <LiquidIf />
matches against its predicate.
\{{liquid-bind}}
).<LiquidBind />
).oldView, newView