File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,11 @@ Fluid Component `Molecule/TeaserCard/TeaserCard.html`:
411
411
<my:molecule.teaserCard buttons="<button>read more about ABC</button>{insecure}" />
412
412
` ` `
413
413
414
- You can also use the `<fc:content />` ViewHelper to specify HTML markup more easily :
414
+ # ## Named Slots
415
+
416
+ With v3.7.0 of Fluid Components you can use the `<fc:content />` ViewHelper to specify HTML markup for
417
+ slots more easily. This makes your templates more readable and can prevent possible XSS issues. The
418
+ syntax is similar both to popular frontend frameworks and the HTML5 web components specification.
415
419
416
420
` ` ` xml
417
421
<my:molecule.teaserCard>
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ The following component implements a simple teaser card element:
49
49
<a href =" {link}" class =" {component.class} {component.class}-{theme}" >
50
50
<h3 class =" {component.prefix}title" >{title}</h3 >
51
51
<f : if condition =" {content}" >
52
- <p class =" {component.prefix}description" >{ fc:slot()} </p >
52
+ <p class =" {component.prefix}description" >< fc : slot /> </p >
53
53
</f : if >
54
54
55
55
<f : if condition =" {icon}" >
You can’t perform that action at this time.
0 commit comments