|
@@ -130,6 +130,7 @@ object BookChapterList {
|
|
|
bookChapter.index = index
|
|
bookChapter.index = index
|
|
|
if (!formatJs.isNullOrBlank()) {
|
|
if (!formatJs.isNullOrBlank()) {
|
|
|
bindings["index"] = index + 1
|
|
bindings["index"] = index + 1
|
|
|
|
|
+ bindings["chapter"] = bookChapter
|
|
|
bindings["title"] = bookChapter.title
|
|
bindings["title"] = bookChapter.title
|
|
|
RhinoScriptEngine.runCatching {
|
|
RhinoScriptEngine.runCatching {
|
|
|
eval(formatJs, bindings)?.toString()?.let {
|
|
eval(formatJs, bindings)?.toString()?.let {
|