简体   繁体   中英

Overriding a blaze template

I am using autoform-ionic . I wanted to add an option to disable adding and removing from arrays on a afArrayField .

I use quickField which references afArrayField_ionic . I created a template with the same name in order to (hopefully) override it so I could add some of my own logic.

template(name="afArrayField_ionic")
  // my custom code here

However, this gives me an error saying that there cannot be two templates with the same name.

How would one override a template to replace it with a different one?

我认为您正在寻找的是: https : //github.com/aldeed/meteor-template-extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM