This works exactly like the supply of resources. E.g. a temple produced a "faith"-resource, that settler treat like food or textiles and such.
See DD/Economy/Supplying_citizens_with_resources