Small Philippine town draws up code to protect coastal resources