.rst
ファイル内のプレースホルダーを実際の値でカスタマイズするにはどうすればよいですか?
たとえば、example.rst
次の内容のファイルがあります。
Header
------------------------------------
${custom_text}
次のコマンドを実行${custom_text}
して、プロパティを値に置き換えたい:this is the value of custom property
rst2html example.rst -o example.html -Dcustom_text="this is the value of custom property"
.properties
また、ファイルを使用してテンプレートをカスタマイズすることは可能かどうか疑問に思います。たとえば、次の内容のファイルをrst2html example.rst -o example.html -p example.properties
使用してコマンドを実行したいと思います。example.properties
custom_text=this is the value of custom property
出来ますか?reStructuredTextはテンプレート機能をまったくサポートしていますか?
編集:.properties
コマンドラインから、または従来のファイル(Ant / Mavenビルド管理ツールで使用可能)を使用してテンプレートをカスタマイズしたいことに注意してください。