浏览代码

Updated Filter Reference (markdown)

Thibaut Courouble 12 年之前
父节点
当前提交
e556beb618
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Filter-Reference.md

+ 3 - 0
Filter-Reference.md

@@ -70,6 +70,9 @@ The `call` method must return either `doc` or `html`, depending on the type of f
 * `root_page?` [Boolean]  
   Returns `true` if the current page is the root page.
 
+* `initial_page?` [Boolean]  
+  Returns `true` if the current page is the root page or its subpath is one of the scraper's `initial_paths`.
+
 ## Core filters
 
 * [`ContainerFilter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/filters/core/container.rb) — changes the root node of the document (remove everything outside)