Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using with tsify plugin, only jade in the index.ts file is interpolated #46

Open
geyang opened this issue Nov 27, 2015 · 0 comments
Open

Comments

@geyang
Copy link

geyang commented Nov 27, 2015

Hi,

Thanks for this great transformer! I have been using it with my angular.js app for a while. Recently, I moved to angular2, and the language switched to typescript.

To compile typescript, I'm using the tsify plugin. It seems jadeify properly interpolates the required jade in the index.ts file correctly, but subsequent dependencies have the template variable below undefined:

declare var template:String = require('./template.jade');

console.log(template);

and it shows the template string is undefined.

To solve this problem, I am thinking about running all of the scripts through jadeify first. Is this possible? the tsify is a plugin.

Thanks

-----update--------

actually, the index.ts file's require('./template.jade') did not work at all either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant