public interface Base
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
get(String name)
Get meta data.
|
String |
getContent()
Return the post or page content.
|
Date |
getDate()
The date format in the source file is 'yyyy-MM-dd HH:mm' or
'yyyy-MM-dd HH:mm:ss'.
|
String |
getDateFormatted()
The output date format of the date.
|
String |
getLayout()
The layout of source file.
|
String |
getPath()
The origin file path of the source file, not source directory prefix.
|
String |
getPermalink()
The permalink style.
|
Source |
getSource()
The file source.
|
Date |
getUpdated()
The updated date format in the source file is 'yyyy-MM-dd HH:mm' or
'yyyy-MM-dd HH:mm:ss'.
|
String |
getUpdatedFormatted()
The output date format of the updated date.
|
String |
getUrl()
Return the URL.
|
void |
set(String name,
Object value)
Set meta data.
|
Source getSource()
String getContent()
Converter in generate processing.String getUrl()
e.g.: '/index.html', '/categories/', '/about/'
If the site url is 'http://press.opoo.org', the site root is '/docs', and this page/post url is '/chapter01/', then the completely URL is 'http://press.opoo.org/docs/chapter01/'.
Site.getRoot()String getPath()
String getLayout()
'nil' means null, not apply any template.
Every layout(except 'nil') has a template defined in templates directory. the template file name is '_<layout>.ftl', can extend OpooPress layout using this mechanism.
String getPermalink()
Date getDate()
Date getUpdated()
String getDateFormatted()
getDate()String getUpdatedFormatted()
getUpdated()void set(String name, Object value)
name - value - get(String)Copyright © 2014 Opoo.org. All Rights Reserved.