Swig (v.1.2.2) を使用しているときに、空白を含むキーを持つオブジェクトを使用しようとすると問題が発生します。
たとえば、Swig テンプレートで次のオブジェクトを使用するにはどうすればよいですか?
{ _lang: 'english',
Title: 'This is the title',
Sub_title: 'This is the sub title',
Feature_1: 'This is the feature 1',
'Feature 2': 'This is the feature 2',
'Feature 3': 'This is the feature 3',
'Feature 4': 'This is the feature 4',
'Feature 5': 'This is the feature 5',
'Feature 6': 'This is the feature 6',
Footer: 'This is the footer' }
したがって、空白のないすべてのキーについて、次のようなもので簡単に使用できます。
<p> {{Feature_1}}</p>
機能 2 などで同様のことを行うにはどうすればよいですか?