A novel methodology based on microemulsion system was used to prepare Ag–PPy core–shell nanocomposite for antibacterial application