Last active
August 29, 2015 13:57
-
-
Save whiteleaf7/9636794 to your computer and use it in GitHub Desktop.
novel.txt.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# -*- coding: utf-8 -*- -%> | |
<% Template.target_binary_version(1.0) -%> | |
<%= toc["title"] %> | |
<%= toc["author"] %> | |
<%= cover_chuki %> | |
[#区切り線] | |
<% if toc["story"] != "" -%> | |
あらすじ: | |
<%= toc["story"] %> | |
<% end -%> | |
掲載ページ: <a href="<%= toc["toc_url"] %>"><%= toc["toc_url"] %></a> | |
[#区切り線] | |
<% sections.each_with_index do |section, i| -%> | |
[#改ページ] | |
<% if section["chapter"] != "" -%> | |
[#ページの左右中央] | |
[#ここから柱]<%= toc["title"] %>[#ここで柱終わり] | |
[#3字下げ][#ここから大見出し]<%= section["chapter"] %>[#ここで大見出し終わり] | |
[#改ページ] | |
<% end -%> | |
[#3字下げ][#ここから中見出し]<%= section["subtitle"].rstrip %>[#ここで中見出し終わり] | |
[#ここから地付き][#ここから2段階小さな文字] | |
公開日:<%= section["subdate"] %> 改稿日:<%= section["subupdate"] %> | |
[#ここで小さな文字終わり][#ここで地付き終わり] | |
<% if section["element"]["introduction"] != "" -%> | |
[#ここから前書き] | |
<%= section["element"]["introduction"] %> | |
[#ここで前書き終わり] | |
<% end -%> | |
<%= section["element"]["body"] %> | |
<% if section["element"]["postscript"] != "" -%> | |
[#ここから後書き] | |
<%= section["element"]["postscript"] %> | |
[#ここで後書き終わり] | |
<% end -%> | |
<% end -%> | |
<% if setting.enable_display_end_of_book -%> | |
[#ここから地付き][#小書き](本を読み終わりました)[#小書き終わり][#ここで地付き終わり] | |
<% end -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment