update for Pixate free edition

This commit is contained in:
Watson
2013-02-09 11:02:19 +09:00
parent 14ce3dc624
commit a706f266d2
2 changed files with 5 additions and 5 deletions

View File

@@ -21,15 +21,15 @@ class PixateConfig
private
def create_code
unless @user && @key
raise "Need to configure `app.pixate.user' and `app.pixate.key' variables"
license = ""
if @user && @key
license = "PXEngine.licenseKey('#{@key}', forUser:'#{@user}')\n"
end
code = <<EOF
# This file is automatically generated. Do not edit.
PXEngine.licenseKey('#{@key}', forUser:'#{@user}')
#{license}
def style(str)
PXStylesheet.styleSheetFromSource(str, withOrigin:0)
PXStylesheet.applyStylesheets