mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 00:21:40 +00:00
macros almost done...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
34b93885b0
commit
dedff41f61
8
macro.js
8
macro.js
@ -595,19 +595,19 @@ module = {
|
||||
var isolated = elem.attr('isolated') == 'true'
|
||||
|
||||
var seen = state.seen.slice()
|
||||
if(seen.indexOf(page.path) >= 0){
|
||||
if(seen.indexOf(page.path()) >= 0){
|
||||
return elem.html()
|
||||
}
|
||||
seen.push(page.path)
|
||||
seen.push(page.path())
|
||||
|
||||
return page.map(function(page){
|
||||
return $('<div>')
|
||||
.append(elem
|
||||
.clone()
|
||||
.attr('src', page.path)
|
||||
.attr('src', page.path())
|
||||
.append(that
|
||||
.parse(page,
|
||||
page.raw,
|
||||
page.raw(),
|
||||
{
|
||||
//slots: !isolated ? state.slots : {},
|
||||
templates: state.templates,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user