<commit_before>extends ../layout

block content
	- locals.supressDefaultJs = true
	script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
	script(src=jsPath+'libs/recurly.min.js')
	link(rel='stylesheet', href='/recurly/recurly.css')

	#subscribeForm.box Loading subscription form...

	script(type="text/javascript")
		ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")


	script(type="text/javascript")
		Recurly.config(!{recurlyConfig})
		var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
		recurlySubscriptionFormConfig.successHandler = function(){
			ga('send', 'event', 'subscription-funnel', 'created')
		}

		Recurly.buildSubscriptionForm();


	include ../general/small-footer
<commit_msg>hooked up the recurly config to recurly.js correctly<commit_after>extends ../layout

block content
	- locals.supressDefaultJs = true
	script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
	script(src=jsPath+'libs/recurly.min.js')
	link(rel='stylesheet', href='/recurly/recurly.css')

	#subscribeForm.box Loading subscription form...

	script(type="text/javascript")
		ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")


	script(type="text/javascript")
		Recurly.config(!{recurlyConfig})
		var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
		recurlySubscriptionFormConfig.successHandler = function(){
			ga('send', 'event', 'subscription-funnel', 'created')
		}

		Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);


	include ../general/small-footer

{'fraction_non_alphanumeric': 0.15685019206145967, 'fraction_numerical': 0.0, 'mean_word_length': 6.338028169014085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1878564', 'n_tokens_mistral': 536, 'n_tokens_neox': 514, 'n_words': 79}