title: How in smarty format 10000 to 10 000
body: <p>first, i am sorry for bad English.</p>
  
  <p>I need modify integer number from 10000 to 10 000, or 999888777 to 999 888 777 - insert spaces between thousands.</p>
  
  <p>Is there any way how to do it in smarty? I found only smarty spacify modifier, but this insert a string between every character.</p>
  
  <p>Thanks for help!</p>