开发者

cheetah parsing error trying to change cheetahVarStartToken

开发者 https://www.devze.com 2023-02-28 08:44 出处:网络
I am writing 开发者_开发技巧a cheetah template and I want to change the cheetahVarStartToken so that I can use the $ for javascript libraries in that section of code however when I run the template I

I am writing 开发者_开发技巧a cheetah template and I want to change the cheetahVarStartToken so that I can use the $ for javascript libraries in that section of code however when I run the template I am getting this error

ConfigParser.ParsingError: File contains parsing errors: [line 2]: u'\t\t\t cheetahVarStartToken = "%"\n'

here is my code

#compiler-settings
cheetahVarStartToken = "%"
#end compiler-settings

  <script>
   //My javascript code
  </script>

#compiler-settings reset


That assignment must start in the first column, so remove the whitespace at the front of cheetahVarStartToken:

This works:

cheetahVarStartToken = "%"

This blows up:

 cheetahVarStartToken = "%"

 ConfigParser.ParsingError: File contains parsing errors: <???>
     [line  2]: ' cheetahVarStartToken = "%"\n'
0

精彩评论

暂无评论...
验证码 换一张
取 消