Is there anything there like pug-ionic-loader, where pug-ng-html-loader really exists?


#1

For ionic1 there is pug-ng-html-loader can be added into webpack to convert pug code to html with ionic tags.

But it is not working in ionic2 project with some tags.

ion-header
	ion-navbar(color='primary')
		button(ion-button='', menuToggle='')
			ion-icon(name='menu')
		ion-title
			| Todo Form
ion-content.home_content(padding='')
	form((ngsubmit)='logForm()')
		ion-item
			ion-input(type='text', [(ngmodel)]='todo.title', name='title', placeholder='Todo')
		ion-item
			ion-textarea.textareades([(ngmodel)]='todo.description', name='description', placeholder='Description')
		button(ion-button='', type='submit', block='') Add Todo

eg: menuToggle is not working where converted from pug like this

any suggestions or ideas


#2

Angular really wants you to use static templates. If you are talking about some sort of build time preprocessor, fine, but if you’re trying to do this at runtime, I think it is going to cause you no end of problems.