A very compact and innovative pulse shaper is proposed and demonstrated. The standard architecture for pulse shaping that is composed of diffraction gratings associated with an amplitude-phase spatial light modulator (SLM) is replaced by a single phase-only SLM. It acts as a pulse stretcher and as an amplitude and phase modulator at the same time. Preliminary experiments demonstrate the accurate control of amplitude and phase of shaped pulses.