Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Nov 4, 2023
1 parent 7285268 commit 3b5cfea
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SiteMesh 3: Official repository
=========

## Kiss Good Bye to Boilerplate Code!!
## Kiss Good Bye to Boilerplate HTML Code!!
## Get Up and Running with a Single JAR. No Configuration Needed, Just Drop it in!

[Learn SiteMesh 3 in 5 Minutes](https://github.com/sitemesh/sitemesh3/blob/master/QUICKSTART.md)
Expand Down Expand Up @@ -372,7 +372,7 @@ Example
<html>
<head>
<title>Hello World</title>
<meta name="decorator" content="decorator.html" />
<meta name="decorator" content="decorator.html"/>
</head>
<body>
<h1>This page will be decorated :)</h1>
Expand Down Expand Up @@ -402,8 +402,8 @@ To use the Java based configuration, subclass org.sitemesh.config.ConfigurableSi
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {
@Override
protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
builder.addDecoratorPath("/*", "decorator.html")
.addDecoratorPath("/admin/*", "admin/decorator.html");
builder.addDecoratorPath("/*", "decorator.html")
.addDecoratorPath("/admin/*", "admin/decorator.html");
}
}
```
Expand All @@ -427,7 +427,7 @@ Exclude a path from being decorated
```xml
<sitemesh>
<!-- Map default decorator. This shall be applied to all paths if no other paths match. -->
<mapping decorator="/default-decorator.html"/>
<mapping decorator="default-decorator.html"/>

<!-- Map decorators to path patterns. -->
<mapping path="/admin/*" decorator="another-decorator.html"/>
Expand Down Expand Up @@ -509,7 +509,7 @@ An advanced feature of SiteMesh is the ability to define custom rules that manip
```xml
<sitemesh>
<content-processor>
<tag-rule-bundle class="com.something.CssCompressingBundle" />
<tag-rule-bundle class="com.something.CssCompressingBundle"/>
<tag-rule-bundle class="com.something.LinkRewritingBundle"/>
</content-processor>
...
Expand All @@ -518,14 +518,12 @@ An advanced feature of SiteMesh is the ability to define custom rules that manip
#### Java
```java
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {



@Override
protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
builder.addTagRuleBundles(new CssCompressingBundle(), new LinkRewritingBundle());
}


}
```

Expand Down

0 comments on commit 3b5cfea

Please sign in to comment.